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

Experimental checkin to see if we can prevent multiple closes ever

being sent on an SSH1 forwarding (or indeed primary) channel.

[originally from svn r1037]
This commit is contained in:
Simon Tatham 2001-04-11 12:29:35 +00:00
parent ac5bebc71d
commit 1734a09466

3
ssh.c
View File

@ -2247,7 +2247,8 @@ static void ssh1_protocol(unsigned char *in, int inlen, int ispkt) {
if (c) { if (c) {
int closetype; int closetype;
closetype = (pktin.type == SSH1_MSG_CHANNEL_CLOSE ? 1 : 2); closetype = (pktin.type == SSH1_MSG_CHANNEL_CLOSE ? 1 : 2);
send_packet(pktin.type, PKT_INT, c->remoteid, PKT_END); if (!(c->closes & closetype))
send_packet(pktin.type, PKT_INT, c->remoteid, PKT_END);
if ((c->closes == 0) && (c->type == CHAN_X11)) { if ((c->closes == 0) && (c->type == CHAN_X11)) {
logevent("X11 connection closed"); logevent("X11 connection closed");
assert(c->u.x11.s != NULL); assert(c->u.x11.s != NULL);