~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Null out the socket pointers in X- and port-forwarding channels for
[sgt/putty]
/
ssh.c
diff --git
a/ssh.c
b/ssh.c
index
068db3c
..
8887d9b
100644
(file)
--- a/
ssh.c
+++ b/
ssh.c
@@
-6670,11
+6670,13
@@
static void ssh2_msg_channel_eof(Ssh ssh, struct Packet *pktin)
* wrap up and close the channel ourselves.
*/
x11_close(c->u.x11.s);
* wrap up and close the channel ourselves.
*/
x11_close(c->u.x11.s);
+ c->u.x11.s = NULL;
sshfwd_close(c);
} else if (c->type == CHAN_AGENT) {
sshfwd_close(c);
} else if (c->type == CHAN_SOCKDATA) {
pfd_close(c->u.pfd.s);
sshfwd_close(c);
} else if (c->type == CHAN_AGENT) {
sshfwd_close(c);
} else if (c->type == CHAN_SOCKDATA) {
pfd_close(c->u.pfd.s);
+ c->u.pfd.s = NULL;
sshfwd_close(c);
}
}
sshfwd_close(c);
}
}