Browse Source

Fix the offset check

Emagi 1 year ago
parent
commit
f039a63f65
1 changed files with 1 additions and 1 deletions
  1. 1 1
      EQ2/source/common/EQStream.cpp

+ 1 - 1
EQ2/source/common/EQStream.cpp

@@ -402,7 +402,7 @@ void EQStream::ProcessPacket(EQProtocolPacket *p, EQProtocolPacket* lastp)
 					} else
 						offset = 1;
 					
-					if(crypto->getRC4Key()==0 && p && subpacket_length >= 8){
+					if(crypto->getRC4Key()==0 && p && subpacket_length > 8+offset){
 					#ifdef DEBUG_EMBEDDED_PACKETS
 						DumpPacket(p->pBuffer, p->size);
 					#endif