X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/75cab8143b83245f207db6dce43878827465b0fd..06a03685046a1ac5100191176bce758b70a35343:/ssh.c diff --git a/ssh.c b/ssh.c index f0a26aad..509ea3ab 100644 --- a/ssh.c +++ b/ssh.c @@ -2611,6 +2611,14 @@ static void ssh_special (Telnet_Special code) { ssh2_pkt_send(); } logevent("Sent EOF message"); + } else if (code == TS_PING) { + if (ssh_version == 1) { + send_packet(SSH1_MSG_IGNORE, PKT_STR, "", PKT_END); + } else { + ssh2_pkt_init(SSH2_MSG_IGNORE); + ssh2_pkt_addstring_start(); + ssh2_pkt_send(); + } } else { /* do nothing */ }