mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-26 09:42:25 +00:00
After we receive EOF on stdin, we should clear ssh->send_ok so that
we stop trying to read anything further from stdin. Otherwise we send a continuous stream of SSH2_MSG_CHANNEL_EOF. [originally from svn r5561]
This commit is contained in:
parent
d0beed9aba
commit
4fa2049108
1
ssh.c
1
ssh.c
@ -8055,6 +8055,7 @@ static void ssh_special(void *handle, Telnet_Special code)
|
|||||||
struct Packet *pktout = ssh2_pkt_init(SSH2_MSG_CHANNEL_EOF);
|
struct Packet *pktout = ssh2_pkt_init(SSH2_MSG_CHANNEL_EOF);
|
||||||
ssh2_pkt_adduint32(pktout, ssh->mainchan->remoteid);
|
ssh2_pkt_adduint32(pktout, ssh->mainchan->remoteid);
|
||||||
ssh2_pkt_send(ssh, pktout);
|
ssh2_pkt_send(ssh, pktout);
|
||||||
|
ssh->send_ok = 0; /* now stop trying to read from stdin */
|
||||||
}
|
}
|
||||||
logevent("Sent EOF message");
|
logevent("Sent EOF message");
|
||||||
} else if (code == TS_PING || code == TS_NOP) {
|
} else if (code == TS_PING || code == TS_NOP) {
|
||||||
|
Loading…
Reference in New Issue
Block a user