From: simon Date: Wed, 11 Apr 2001 12:29:35 +0000 (+0000) Subject: Experimental checkin to see if we can prevent multiple closes ever X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/824e9f94230b6979e64a4e4fb8e4f535e641a844?ds=sidebyside;hp=22dcdc3b1a1c7c820fabe3ebaae8be6b09b4408e Experimental checkin to see if we can prevent multiple closes ever being sent on an SSH1 forwarding (or indeed primary) channel. git-svn-id: svn://svn.tartarus.org/sgt/putty@1037 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/ssh.c b/ssh.c index 8e5dce7a..8d310e1b 100644 --- a/ssh.c +++ b/ssh.c @@ -2247,7 +2247,8 @@ static void ssh1_protocol(unsigned char *in, int inlen, int ispkt) { if (c) { int closetype; 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)) { logevent("X11 connection closed"); assert(c->u.x11.s != NULL);