mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-02-09 16:36:34 +00:00
Null out the socket pointers in X- and port-forwarding channels for
which we close the socket without destroying the channel. John Peterson reports periodic crashes under heavy load which appear to be fixed by this, though I don't know the exact circumstances induced by that load. [originally from svn r8871]
This commit is contained in:
parent
7e16457d14
commit
38714cecf3
2
ssh.c
2
ssh.c
@ -6670,11 +6670,13 @@ static void ssh2_msg_channel_eof(Ssh ssh, struct Packet *pktin)
|
|||||||
* wrap up and close the channel ourselves.
|
* wrap up and close the channel ourselves.
|
||||||
*/
|
*/
|
||||||
x11_close(c->u.x11.s);
|
x11_close(c->u.x11.s);
|
||||||
|
c->u.x11.s = NULL;
|
||||||
sshfwd_close(c);
|
sshfwd_close(c);
|
||||||
} else if (c->type == CHAN_AGENT) {
|
} else if (c->type == CHAN_AGENT) {
|
||||||
sshfwd_close(c);
|
sshfwd_close(c);
|
||||||
} else if (c->type == CHAN_SOCKDATA) {
|
} else if (c->type == CHAN_SOCKDATA) {
|
||||||
pfd_close(c->u.pfd.s);
|
pfd_close(c->u.pfd.s);
|
||||||
|
c->u.pfd.s = NULL;
|
||||||
sshfwd_close(c);
|
sshfwd_close(c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user