Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mRemoteNG/PuTTYNG.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>1999-10-04 18:20:17 +0400
committerSimon Tatham <anakin@pobox.com>1999-10-04 18:20:17 +0400
commitc409f643f844bf881ac145c4a369df6463bd3bdc (patch)
tree499e27a67c85ba661e93288fdc910642b49233af /telnet.c
parentd929fb621e75efef0832f665c3dee0abf115d2c8 (diff)
Stop IAC IAC from being swallowed in telnet (fix due to Robert de Bath)
[originally from svn r232]
Diffstat (limited to 'telnet.c')
-rw-r--r--telnet.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/telnet.c b/telnet.c
index 00b081bd..20341cd3 100644
--- a/telnet.c
+++ b/telnet.c
@@ -410,7 +410,12 @@ static void do_telnet_read (char *buf, int len) {
else if (c == WILL) telnet_state = SEENWILL;
else if (c == WONT) telnet_state = SEENWONT;
else if (c == SB) telnet_state = SEENSB;
- else telnet_state = TOPLEVEL;/* ignore _everything_ else! */
+ else {
+ /* ignore (and print) everything else */
+ b[0] = c;
+ c_write(b,1);
+ telnet_state = TOPLEVEL;
+ }
break;
case SEENWILL:
proc_rec_opt (WILL, c);