When we receive CHANNEL_CLOSE on an SSH-2 channel and haven't sent EOF
[u/mdw/putty] / ssh.c
diff --git a/ssh.c b/ssh.c
index 6471c4b..6d5ebd4 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -6564,7 +6564,6 @@ static void ssh2_set_window(struct ssh_channel *c, int newwin)
      */
     if ((ssh->remote_bugs & BUG_SSH2_MAXPKT) && newwin > OUR_V2_MAXPKT)
        newwin = OUR_V2_MAXPKT;
-       
 
     /*
      * Only send a WINDOW_ADJUST if there's significantly more window
@@ -7000,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);
     }
 
     /*