diff --git a/phpseclib/Net/SSH1.php b/phpseclib/Net/SSH1.php index b7b7cd8ac..bdb57dbdb 100644 --- a/phpseclib/Net/SSH1.php +++ b/phpseclib/Net/SSH1.php @@ -1169,7 +1169,7 @@ function _get_binary_packet() while ($length > 0) { $temp = fread($this->fsock, $length); - if (stlren($temp) != $length) { + if (strlen($temp) != $length) { return false; } $raw.= $temp;