1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-05 13:32:48 -05:00

Fix a segfault on abrupt X connection shutdown.

[originally from svn r998]
This commit is contained in:
Simon Tatham
2001-03-15 11:19:59 +00:00
parent cb9c2e79b9
commit c760ef6f83
2 changed files with 5 additions and 2 deletions

2
ssh.c
View File

@ -1982,7 +1982,7 @@ static int do_ssh1_login(unsigned char *in, int inlen, int ispkt)
}
void sshfwd_close(struct ssh_channel *c) {
if (c) {
if (c && !c->closes) {
if (ssh_version == 1) {
send_packet(SSH1_MSG_CHANNEL_CLOSE, PKT_INT, c->remoteid, PKT_END);
} else {