diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index a9c99e5e..89c6b3df 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -3335,7 +3335,8 @@ class SSH2 $raw = stream_get_contents($this->fsock, $this->decrypt_block_size); if (!strlen($raw)) { - return ''; + user_error('No data received from server'); + return false; } if ($this->decrypt) {