diff options
author | Simon Tatham <anakin@pobox.com> | 1999-10-04 18:20:17 +0400 |
---|---|---|
committer | Simon Tatham <anakin@pobox.com> | 1999-10-04 18:20:17 +0400 |
commit | c409f643f844bf881ac145c4a369df6463bd3bdc (patch) | |
tree | 499e27a67c85ba661e93288fdc910642b49233af /telnet.c | |
parent | d929fb621e75efef0832f665c3dee0abf115d2c8 (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.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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); |