X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/4f6e3bae2974de6b683e82d24af7c693fce4ffc3..0eece8a7f0c4e65b2f51572c8c792bed1b5a48d2:/telnet.c diff --git a/telnet.c b/telnet.c index 7bdfedb6..dc98a727 100644 --- a/telnet.c +++ b/telnet.c @@ -667,6 +667,12 @@ static int telnet_closing(Plug plug, const char *error_msg, int error_code, { Telnet telnet = (Telnet) plug; + /* + * We don't implement independent EOF in each direction for Telnet + * connections; as soon as we get word that the remote side has + * sent us EOF, we wind up the whole connection. + */ + if (telnet->s) { sk_close(telnet->s); telnet->s = NULL;