mirror of
https://github.com/danog/phpseclib.git
synced 2025-01-22 04:51:19 +01: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…
x
Reference in New Issue
Block a user