mirror of
https://github.com/xPaw/PHP-Source-Query.git
synced 2026-05-18 13:53:35 +02:00
Fix invalid variable when decompressing
This commit is contained in:
@@ -139,9 +139,9 @@
|
|||||||
throw new RuntimeException( 'Received compressed packet, PHP doesn\'t have Bzip2 library installed, can\'t decompress.' );
|
throw new RuntimeException( 'Received compressed packet, PHP doesn\'t have Bzip2 library installed, can\'t decompress.' );
|
||||||
}
|
}
|
||||||
|
|
||||||
$Data = bzdecompress( $Data );
|
$Buffer = bzdecompress( $Buffer );
|
||||||
|
|
||||||
if( CRC32( $Data ) !== $PacketChecksum )
|
if( CRC32( $Buffer ) !== $PacketChecksum )
|
||||||
{
|
{
|
||||||
throw new SourceQueryException( 'CRC32 checksum mismatch of uncompressed packet data.' );
|
throw new SourceQueryException( 'CRC32 checksum mismatch of uncompressed packet data.' );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user