From 3b0a138a39f56b1a09909656fc3dcec18f5cdb19 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 19 Oct 2017 17:52:39 +0300 Subject: Fix for possible truncated packet. --- src/net/eathena/partyrecv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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)"); -- cgit v1.2.3-70-g09d2