mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-21 22:28:37 -05:00
Fix a bug in cygtermd, spotted by Casey Zacek, in which we
unconditionally set the telnet state to SEENCR regardless of whether we have actually seen a CR, and as a result sending a NUL through PuTTY (via Ctrl-Space or whatever) does not work. Must have arisen through some kind of really weird cut-and-paste error! [originally from svn r9545]
This commit is contained in:
parent
c10a8dee07
commit
615455a913
@ -424,7 +424,10 @@ void telnet_from_net(Telnet telnet, char *buf, int len)
|
|||||||
char cc = c;
|
char cc = c;
|
||||||
sel_write(telnet->pty, &cc, 1);
|
sel_write(telnet->pty, &cc, 1);
|
||||||
|
|
||||||
telnet->state = SEENCR;
|
if (c == CR)
|
||||||
|
telnet->state = SEENCR;
|
||||||
|
else
|
||||||
|
telnet->state = TOP_LEVEL;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SEENIAC:
|
case SEENIAC:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user