projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3875a77
)
Connection: Stop processing malformed packet when encountered
author
kwolekr
<kwolekr@minetest.net>
Tue, 21 Jan 2014 14:33:33 +0000
(09:33 -0500)
committer
kwolekr
<kwolekr@minetest.net>
Tue, 21 Jan 2014 14:33:54 +0000
(09:33 -0500)
src/connection.cpp
patch
|
blob
|
history
diff --git
a/src/connection.cpp
b/src/connection.cpp
index ee03b2113ffc60959ed87a37fc0c93df6d2bbab4..9f167266c2e26dee66d64f6e91eeda55c1fe441f 100644
(file)
--- 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);