mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-09-22 20:49:00 +00:00
SSH2: set channel closure flag elsewhere as well
This commit is contained in:
parent
62677de0bf
commit
85205bf6d5
@ -3673,6 +3673,9 @@ class Net_SFTP extends Net_SSH2
|
|||||||
while ($tempLength > 0) {
|
while ($tempLength > 0) {
|
||||||
$temp = $this->_get_channel_packet(NET_SFTP_CHANNEL, true);
|
$temp = $this->_get_channel_packet(NET_SFTP_CHANNEL, true);
|
||||||
if (is_bool($temp)) {
|
if (is_bool($temp)) {
|
||||||
|
if ($temp && $this->channel_status[NET_SFTP_CHANNEL] === NET_SSH2_MSG_CHANNEL_CLOSE) {
|
||||||
|
$this->channel_close = true;
|
||||||
|
}
|
||||||
$this->packet_type = false;
|
$this->packet_type = false;
|
||||||
$this->packet_buffer = '';
|
$this->packet_buffer = '';
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user