Skip to content

Commit

Permalink
SSH2: reset more internal variables when connection is reset
Browse files Browse the repository at this point in the history
  • Loading branch information
terrafrost committed Nov 23, 2023
1 parent be05f4e commit 8ecd156
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions phpseclib/Net/SSH2.php
Expand Up @@ -3436,6 +3436,8 @@ protected function reset_connection($reason)
$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
}

/**
Expand Down

1 comment on commit 8ecd156

@terrafrost
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #1961

Please sign in to comment.