mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-11 16:15:52 +00:00
SFTP: return false if get_channel_packet returns false
This commit is contained in:
parent
973bb072a0
commit
a02526e5e0
@ -3169,6 +3169,9 @@ class Net_SFTP extends Net_SSH2
|
||||
$this->packet_buffer = '';
|
||||
return false;
|
||||
}
|
||||
if ($temp === false) {
|
||||
return false;
|
||||
}
|
||||
$this->packet_buffer.= $temp;
|
||||
}
|
||||
if (strlen($this->packet_buffer) < 4) {
|
||||
|
Loading…
Reference in New Issue
Block a user