SFTP: return false if get_channel_packet returns false

This commit is contained in:
terrafrost 2021-07-05 08:33:42 -05:00
parent 973bb072a0
commit a02526e5e0

View File

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