parent
813ca04676
commit
6920e468ad
@ -1921,12 +1921,11 @@ void cProtocol180::AddReceivedData(const char * a_Data, size_t a_Size)
|
|||||||
{
|
{
|
||||||
// Decompress the data:
|
// Decompress the data:
|
||||||
AString CompressedData;
|
AString CompressedData;
|
||||||
if (!m_ReceivedData.ReadString(CompressedData, CompressedSize))
|
if (!m_ReceivedData.ReadString(CompressedData, CompressedSize) || (InflateString(CompressedData.data(), CompressedSize, UncompressedData) != Z_OK))
|
||||||
{
|
{
|
||||||
m_Client->Kick("Compression failure");
|
m_Client->Kick("Compression failure");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
InflateString(CompressedData.data(), CompressedSize, UncompressedData);
|
|
||||||
PacketLen = UncompressedData.size();
|
PacketLen = UncompressedData.size();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user