projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clip the 'lines' parameter to scroll() at the size of the scroll
[u/mdw/putty]
/
telnet.c
diff --git
a/telnet.c
b/telnet.c
index
7bdfedb
..
dc98a72
100644
(file)
--- 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;
{
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;
if (telnet->s) {
sk_close(telnet->s);
telnet->s = NULL;