Fixed things

This commit is contained in:
Shoghi Cervantes Pueyo 2013-05-15 18:38:20 +02:00
parent cef4347a02
commit 991436993f
3 changed files with 16 additions and 7 deletions

View file

@ -123,7 +123,7 @@ class RCONInstance extends Thread{
}
@socket_set_block($client);
$size = Utils::readLInt($d);
if($size < 0){
if($size < 0 or $size > 65535){
return false;
}
$requestID = Utils::readLInt(socket_read($client, 4));