diff options
author | 2001-12-06 18:02:32 +0000 | |
---|---|---|
committer | 2001-12-06 18:02:32 +0000 | |
commit | 9cc8e09503e325c80c5eff0b4ca691417efb2dd0 (patch) | |
tree | 66daf5dad62367e1d41f4b1b7eab3f65702bc62c /usr.bin/ssh/channels.c | |
parent | vtophys, R.I.P. (tx now uses bus_dma) (diff) | |
download | wireguard-openbsd-9cc8e09503e325c80c5eff0b4ca691417efb2dd0.tar.xz wireguard-openbsd-9cc8e09503e325c80c5eff0b4ca691417efb2dd0.zip |
shutdown(sock, SHUT_RDWR) not needed here; ok markus@
Diffstat (limited to 'usr.bin/ssh/channels.c')
-rw-r--r-- | usr.bin/ssh/channels.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/ssh/channels.c b/usr.bin/ssh/channels.c index bf86e65695b..ca840743c9c 100644 --- a/usr.bin/ssh/channels.c +++ b/usr.bin/ssh/channels.c @@ -39,7 +39,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: channels.c,v 1.143 2001/12/05 10:06:12 deraadt Exp $"); +RCSID("$OpenBSD: channels.c,v 1.144 2001/12/06 18:02:32 stevesk Exp $"); #include "ssh.h" #include "ssh1.h" @@ -2425,10 +2425,8 @@ x11_create_display_inet(int x11_display_offset, int gateway_ports) } if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { debug("bind port %d: %.100s", port, strerror(errno)); - shutdown(sock, SHUT_RDWR); close(sock); for (n = 0; n < num_socks; n++) { - shutdown(socks[n], SHUT_RDWR); close(socks[n]); } num_socks = 0; @@ -2451,7 +2449,6 @@ x11_create_display_inet(int x11_display_offset, int gateway_ports) sock = socks[n]; if (listen(sock, 5) < 0) { error("listen: %.100s", strerror(errno)); - shutdown(sock, SHUT_RDWR); close(sock); return -1; } |