Merge branch '3.0'

This commit is contained in:
terrafrost 2024-11-22 17:24:25 -06:00
commit 7070529e79

View File

@ -3539,11 +3539,9 @@ class SSH2
case MessageType::DISCONNECT: case MessageType::DISCONNECT:
return $this->handleDisconnect($payload); return $this->handleDisconnect($payload);
case MessageType::IGNORE: case MessageType::IGNORE:
$this->extra_packets++;
$payload = $this->get_binary_packet(); $payload = $this->get_binary_packet();
break; break;
case MessageType::DEBUG: case MessageType::DEBUG:
$this->extra_packets++;
Strings::shift($payload, 2); // second byte is "always_display" Strings::shift($payload, 2); // second byte is "always_display"
[$message] = Strings::unpackSSH2('s', $payload); [$message] = Strings::unpackSSH2('s', $payload);
$this->errors[] = "SSH_MSG_DEBUG: $message"; $this->errors[] = "SSH_MSG_DEBUG: $message";