aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2014-01-21 09:33:33 -0500
committerkwolekr <kwolekr@minetest.net>2014-01-21 09:33:54 -0500
commit057858ddda76d1f674667e024f388c56ae2e11a2 (patch)
tree948b2853965cc57c06bece59d3c0d5aa6bcb93da
parent3875a77bf88f0876a1c56852d59c4832d908d711 (diff)
downloadminetest-057858ddda76d1f674667e024f388c56ae2e11a2.tar.gz
minetest-057858ddda76d1f674667e024f388c56ae2e11a2.tar.bz2
minetest-057858ddda76d1f674667e024f388c56ae2e11a2.zip
Connection: Stop processing malformed packet when encountered
-rw-r--r--src/connection.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/connection.cpp b/src/connection.cpp
index ee03b2113..9f167266c 100644
--- a/src/connection.cpp
+++ b/src/connection.cpp
@@ -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);