1
0
mirror of https://github.com/xPaw/PHP-Source-Query.git synced 2026-05-18 11:43:33 +02:00

Fix invalid variable when decompressing

This commit is contained in:
xPaw
2014-12-25 14:35:06 +02:00
parent ed5a98cb23
commit ebd8f41834
+2 -2
View File
@@ -139,9 +139,9 @@
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.' );
}