1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-26 09:42:25 +00:00

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.

[originally from svn r9608]
This commit is contained in:
Ben Harris 2012-08-19 11:35:26 +00:00
parent e570820c74
commit 4e5012aeda

5
ssh.c
View File

@ -4959,13 +4959,16 @@ static void ssh1_msg_channel_close(Ssh ssh, struct Packet *pktin)
x11_send_eof(c->u.x11.s); x11_send_eof(c->u.x11.s);
else else
send_close = TRUE; send_close = TRUE;
break;
case CHAN_SOCKDATA: case CHAN_SOCKDATA:
if (c->u.pfd.s) if (c->u.pfd.s)
x11_send_eof(c->u.pfd.s); pfd_send_eof(c->u.pfd.s);
else else
send_close = TRUE; send_close = TRUE;
break;
case CHAN_AGENT: case CHAN_AGENT:
send_close = TRUE; send_close = TRUE;
break;
} }
if (send_close && !(c->closes & CLOSES_SENT_EOF)) { if (send_close && !(c->closes & CLOSES_SENT_EOF)) {