From: ben Date: Sun, 19 Aug 2012 11:35:26 +0000 (+0000) Subject: Fix an erroneous "case" fallthrough in ssh1_msg_channel_close, which was X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/commitdiff_plain/9fb91415561170f9400840097d05b93350be522b Fix an erroneous "case" fallthrough in ssh1_msg_channel_close, which was 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 --- diff --git a/ssh.c b/ssh.c index 1178b305..1ef80b06 100644 --- 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)) {