Core/Bnet: Fixed an issue that allowed client to enter Battlenet::Session::ReadDataHandler with an invalid header

Closes #18312
This commit is contained in:
Shauren
2016-11-26 11:55:28 +01:00
parent 19c4df749d
commit def94248e1

View File

@@ -638,7 +638,7 @@ bool Battlenet::Session::ReadHeaderHandler()
{
Header header;
if (!header.ParseFromArray(_headerBuffer.GetReadPointer(), _headerBuffer.GetActiveSize()))
return true;
return false;
_packetBuffer.Resize(header.size());
return true;