mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-11 08:39:43 +01: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 = '';
|
$this->packet_buffer = '';
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if ($temp === false) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
$this->packet_buffer.= $temp;
|
$this->packet_buffer.= $temp;
|
||||||
}
|
}
|
||||||
if (strlen($this->packet_buffer) < 4) {
|
if (strlen($this->packet_buffer) < 4) {
|
||||||
|
Loading…
Reference in New Issue
Block a user