summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e6c9237)
}
void sshfwd_close(struct ssh_channel *c) {
}
void sshfwd_close(struct ssh_channel *c) {
if (ssh_version == 1) {
send_packet(SSH1_MSG_CHANNEL_CLOSE, PKT_INT, c->remoteid, PKT_END);
} else {
if (ssh_version == 1) {
send_packet(SSH1_MSG_CHANNEL_CLOSE, PKT_INT, c->remoteid, PKT_END);
} else {
}
void x11_close (Socket s) {
}
void x11_close (Socket s) {
- struct X11Private *pr = (struct X11Private *)sk_get_private_ptr(s);
+ struct X11Private *pr;\r
+ if (!s)\r
+ return;\r
+ pr = (struct X11Private *)sk_get_private_ptr(s);
if (pr->auth_protocol) {
sfree(pr->auth_protocol);
if (pr->auth_protocol) {
sfree(pr->auth_protocol);