Fix an erroneous "case" fallthrough in ssh1_msg_channel_close, which was
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sun, 19 Aug 2012 11:35:26 +0000 (11:35 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sun, 19 Aug 2012 11:35:26 +0000 (11:35 +0000)
causing assertion failures when closing X11 channels in SSH-1.  Also fix
another pasto.

git-svn-id: svn://svn.tartarus.org/sgt/putty@9608 cda61777-01e9-0310-a592-d414129be87e

ssh.c

diff --git a/ssh.c b/ssh.c
index 1178b30..1ef80b0 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -4959,13 +4959,16 @@ static void ssh1_msg_channel_close(Ssh ssh, struct Packet *pktin)
                     x11_send_eof(c->u.x11.s);
                 else
                     send_close = TRUE;
+               break;
               case CHAN_SOCKDATA:
                 if (c->u.pfd.s)
-                    x11_send_eof(c->u.pfd.s);
+                    pfd_send_eof(c->u.pfd.s);
                 else
                     send_close = TRUE;
+               break;
               case CHAN_AGENT:
                 send_close = TRUE;
+               break;
             }
 
             if (send_close && !(c->closes & CLOSES_SENT_EOF)) {