From 0b9fd9821e8b5982d32facd0c44f486c1a85e780 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Thu, 16 Jan 2025 02:57:15 -0600 Subject: [PATCH] SFTP: fix typing error --- phpseclib/Net/SFTP.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index 600ace076..32a4ce1b1 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -3016,7 +3016,7 @@ private function get_sftp_packet($request_id = null) if ($this->channel_status[self::CHANNEL] === SSH2MessageType::CHANNEL_CLOSE) { $this->channel_close = true; } - $this->packet_type = false; + $this->packet_type = -1; $this->packet_buffer = ''; return false; } @@ -3043,7 +3043,7 @@ private function get_sftp_packet($request_id = null) if ($this->channel_status[self::CHANNEL] === SSH2MessageType::CHANNEL_CLOSE) { $this->channel_close = true; } - $this->packet_type = false; + $this->packet_type = -1; $this->packet_buffer = ''; return false; }