]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
When we receive CHANNEL_CLOSE on an SSH-2 channel and haven't sent EOF
authorSimon Tatham <anakin@pobox.com>
Thu, 8 Dec 2011 19:15:55 +0000 (19:15 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 8 Dec 2011 19:15:55 +0000 (19:15 +0000)
on it yet, we should send EOF on _that channel_, not the main session
channel! Oops.

[originally from svn r9362]

ssh.c

diff --git a/ssh.c b/ssh.c
index a21bbc7b97a180170fd1909bfa2f94593e74e850..6d5ebd44872a4019d19eacd20f10b28f74b4993b 100644 (file)
--- 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);
     }
 
     /*