From c4f6f602e5d625c41028449dd7f9a8311c2ff933 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Tue, 14 Jun 2022 05:47:51 -0500 Subject: [PATCH] SFTP: update for the master branch --- phpseclib/Net/SFTP.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index 44a8d06f..c10fb2be 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -3117,7 +3117,7 @@ class SFTP extends SSH2 while ($tempLength > 0) { $temp = $this->get_channel_packet(self::CHANNEL, true); if ($temp === true) { - if ($this->channel_status[self::CHANNEL] === NET_SSH2_MSG_CHANNEL_CLOSE) { + if ($this->channel_status[self::CHANNEL] === SSH2MessageType::CHANNEL_CLOSE) { $this->channel_close = true; } $this->packet_type = false;