mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +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:
parent
e570820c74
commit
4e5012aeda
5
ssh.c
5
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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user