From 8aa218e8942bcfd4ef1bc3cea393616283f18389 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 8 Dec 2011 19:15:55 +0000 Subject: [PATCH] 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] --- ssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh.c b/ssh.c index a21bbc7b..6d5ebd44 100644 --- a/ssh.c +++ b/ssh.c @@ -6999,7 +6999,7 @@ static void ssh2_msg_channel_close(Ssh ssh, struct Packet *pktin) /* * Send outgoing EOF. */ - sshfwd_write_eof(ssh->mainchan); + sshfwd_write_eof(c); } /* -- 2.45.2