mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48: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:
parent
d929fb621e
commit
c409f643f8
7
telnet.c
7
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 == WILL) telnet_state = SEENWILL;
|
||||||
else if (c == WONT) telnet_state = SEENWONT;
|
else if (c == WONT) telnet_state = SEENWONT;
|
||||||
else if (c == SB) telnet_state = SEENSB;
|
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;
|
break;
|
||||||
case SEENWILL:
|
case SEENWILL:
|
||||||
proc_rec_opt (WILL, c);
|
proc_rec_opt (WILL, c);
|
||||||
|
Loading…
Reference in New Issue
Block a user