1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-12 09:09:39 +01:00

SFTP: update for 2.0 code

This commit is contained in:
terrafrost 2022-06-14 05:32:38 -05:00
parent 1d1d3a4403
commit 413dcb6082

View File

@ -3618,7 +3618,7 @@ class SFTP extends SSH2
while ($tempLength > 0) { while ($tempLength > 0) {
$temp = $this->_get_channel_packet(self::CHANNEL, true); $temp = $this->_get_channel_packet(self::CHANNEL, true);
if (is_bool($temp)) { if (is_bool($temp)) {
if ($temp && $this->channel_status[NET_SFTP_CHANNEL] === NET_SSH2_MSG_CHANNEL_CLOSE) { if ($temp && $this->channel_status[self::CHANNEL] === NET_SSH2_MSG_CHANNEL_CLOSE) {
$this->channel_close = true; $this->channel_close = true;
} }
$this->packet_type = false; $this->packet_type = false;