diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2000-05-01 20:21:41 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2000-05-01 20:21:41 +0000 |
commit | e48d44975b281766b58f1be3c8b1e033aa42fdae (patch) | |
tree | 9ae067cba14a31affbc03c5536852b33ea5e40f4 /usr.bin | |
parent | 64f76012e64d5f42d43ab6fb30440366a4a4286f (diff) |
unbreak, ok niels@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/channels.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/channels.c b/usr.bin/ssh/channels.c index 42a8a04552d..a064b6b0b35 100644 --- a/usr.bin/ssh/channels.c +++ b/usr.bin/ssh/channels.c @@ -17,7 +17,7 @@ */ #include "includes.h" -RCSID("$Id: channels.c,v 1.53 2000/05/01 19:11:35 markus Exp $"); +RCSID("$Id: channels.c,v 1.54 2000/05/01 20:21:40 markus Exp $"); #include "ssh.h" #include "packet.h" @@ -250,7 +250,6 @@ void channel_close_fds(Channel *c) { if (c->sock != -1) { - shutdown(c->sock, SHUT_RDWR); close(c->sock); c->sock = -1; } @@ -281,6 +280,8 @@ channel_free(int id) debug("channel_free: channel %d: dettaching channel user", id); c->dettach_user(c->self, NULL); } + if (c->sock != -1) + shutdown(c->sock, SHUT_RDWR); channel_close_fds(c); buffer_free(&c->input); buffer_free(&c->output); |