SSH2: error out when no data is received from the server

This commit is contained in:
terrafrost 2021-11-11 19:06:18 -06:00
parent 31eac61820
commit fe4dc433cc

View File

@ -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) {