summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-10-19 17:52:39 +0300
committerAndrei Karas <akaras@inbox.ru>2017-10-23 17:21:10 +0300
commit3b0a138a39f56b1a09909656fc3dcec18f5cdb19 (patch)
treea0fba3d1c82b1f69c37a45e896733ee3ef5782c0 /src/net
parent4fe5bcdd7173207d95f02562ad301275cbabe137 (diff)
downloadmv-3b0a138a39f56b1a09909656fc3dcec18f5cdb19.tar.gz
mv-3b0a138a39f56b1a09909656fc3dcec18f5cdb19.tar.bz2
mv-3b0a138a39f56b1a09909656fc3dcec18f5cdb19.tar.xz
mv-3b0a138a39f56b1a09909656fc3dcec18f5cdb19.zip
Fix for possible truncated packet.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/partyrecv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/eathena/partyrecv.cpp b/src/net/eathena/partyrecv.cpp
index 9ce0dbdce..a0019807e 100644
--- a/src/net/eathena/partyrecv.cpp
+++ b/src/net/eathena/partyrecv.cpp
@@ -256,7 +256,7 @@ void PartyRecv::processPartyInfo(Net::MessageIn &msg)
}
}
- if (msg.getVersion() >= 20170502)
+ if (msg.getVersion() >= 20170502 && msg.getUnreadLength() >= 6)
{
msg.readInt8("pickup item share (&1)");
msg.readInt8("get item share (&2)");