Skip to content

Commit

Permalink
SSH2: rm extra_packets in a few more places
Browse files Browse the repository at this point in the history
  • Loading branch information
terrafrost committed Nov 22, 2024
1 parent e81fd68 commit f5113e1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions phpseclib/Net/SSH2.php
Original file line number Diff line number Diff line change
Expand Up @@ -3869,11 +3869,9 @@ private function filter($payload)
case NET_SSH2_MSG_DISCONNECT:
return $this->handleDisconnect($payload);
case NET_SSH2_MSG_IGNORE:
$this->extra_packets++;
$payload = $this->get_binary_packet();
break;
case NET_SSH2_MSG_DEBUG:
$this->extra_packets++;
Strings::shift($payload, 2); // second byte is "always_display"
list($message) = Strings::unpackSSH2('s', $payload);
$this->errors[] = "SSH_MSG_DEBUG: $message";
Expand Down

0 comments on commit f5113e1

Please sign in to comment.