Skip to content

Commit ebd8f41

Browse files
committed
Fix invalid variable when decompressing
1 parent ed5a98c commit ebd8f41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SourceQuery/Socket.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ public function Read( $Length = 1400 )
139139
throw new RuntimeException( 'Received compressed packet, PHP doesn\'t have Bzip2 library installed, can\'t decompress.' );
140140
}
141141

142-
$Data = bzdecompress( $Data );
142+
$Buffer = bzdecompress( $Buffer );
143143

144-
if( CRC32( $Data ) !== $PacketChecksum )
144+
if( CRC32( $Buffer ) !== $PacketChecksum )
145145
{
146146
throw new SourceQueryException( 'CRC32 checksum mismatch of uncompressed packet data.' );
147147
}

0 commit comments

Comments
 (0)