From 8ecd156ce1e932f38333571e530885ac4df52bc6 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Wed, 22 Nov 2023 18:08:38 -0600 Subject: [PATCH] SSH2: reset more internal variables when connection is reset --- phpseclib/Net/SSH2.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index 630cee61..b1ce4b9c 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -3436,6 +3436,8 @@ class SSH2 $this->session_id = false; $this->retry_connect = true; $this->get_seq_no = $this->send_seq_no = 0; + $this->channel_status = []; + $this->channel_id_last_interactive = 0 } /**