Connection: Stop processing malformed packet when encountered

This commit is contained in:
kwolekr 2014-01-21 09:33:33 -05:00
parent 3875a77bf8
commit 057858ddda

@ -2036,6 +2036,7 @@ void ConnectionReceiveThread::receive()
<<"Receive(): Invalid incoming packet, " <<"Receive(): Invalid incoming packet, "
<<"size: " << received_size <<"size: " << received_size
<<", protocol: " << readU32(&packetdata[0]) <<std::endl); <<", protocol: " << readU32(&packetdata[0]) <<std::endl);
continue;
} }
u16 peer_id = readPeerId(*packetdata); u16 peer_id = readPeerId(*packetdata);