X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/c69784c016672f18d546875689652c4b54431bad..beff003a9e3e1b746473ea81f3ffad3dfcfc5f6f:/ssh.c diff --git a/ssh.c b/ssh.c index 3464ea54..6471c4b8 100644 --- a/ssh.c +++ b/ssh.c @@ -6551,9 +6551,10 @@ static void ssh2_set_window(struct ssh_channel *c, int newwin) /* * Never send WINDOW_ADJUST for a channel that the remote side has * already sent EOF on; there's no point, since it won't be - * sending any more data anyway. + * sending any more data anyway. Ditto if _we've_ already sent + * CLOSE. */ - if (c->closes & CLOSES_RCVD_EOF) + if (c->closes & (CLOSES_RCVD_EOF | CLOSES_SENT_CLOSE)) return; /*