mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-09-22 12:39:01 +00:00
SSH2: error out when no data is received from the server
This commit is contained in:
parent
31eac61820
commit
fe4dc433cc
@ -3537,7 +3537,8 @@ class Net_SSH2
|
||||
$raw = fread($this->fsock, $this->decrypt_block_size);
|
||||
|
||||
if (!strlen($raw)) {
|
||||
return '';
|
||||
user_error('No data received from server');
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($this->decrypt !== false) {
|
||||
|
Loading…
Reference in New Issue
Block a user