1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Stop IAC IAC from being swallowed in telnet (fix due to Robert de Bath)

[originally from svn r232]
This commit is contained in:
Simon Tatham 1999-10-04 14:20:17 +00:00
parent d929fb621e
commit c409f643f8

View File

@ -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);