Connection: Stop processing malformed packet when encountered
authorkwolekr <kwolekr@minetest.net>
Tue, 21 Jan 2014 14:33:33 +0000 (09:33 -0500)
committerkwolekr <kwolekr@minetest.net>
Tue, 21 Jan 2014 14:33:54 +0000 (09:33 -0500)
src/connection.cpp

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