1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 18:07:59 +00:00

When we receive CHANNEL_CLOSE on an SSH-2 channel and haven't sent EOF

on it yet, we should send EOF on _that channel_, not the main session
channel! Oops.

[originally from svn r9362]
This commit is contained in:
Simon Tatham 2011-12-08 19:15:55 +00:00
parent 69a01afe48
commit 8aa218e894

2
ssh.c
View File

@ -6999,7 +6999,7 @@ static void ssh2_msg_channel_close(Ssh ssh, struct Packet *pktin)
/* /*
* Send outgoing EOF. * Send outgoing EOF.
*/ */
sshfwd_write_eof(ssh->mainchan); sshfwd_write_eof(c);
} }
/* /*