summaryrefslogtreecommitdiffstats
path: root/channels.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-12-07 17:24:49 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-12-07 17:24:49 +0000
commite181a4d2949d063a9417cf2691cb0ec2d3568e53 (patch)
tree1dd8fb0cb1305a95c17a6778386fffba7bee358c /channels.c
parentc97b1affc53cbe2c9a0777b7c9b9d400b09b2f89 (diff)
- stevesk@cvs.openbsd.org 2001/12/06 18:02:32
[channels.c sshconnect.c] shutdown(sock, SHUT_RDWR) not needed here; ok markus@
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/channels.c b/channels.c
index 4c14ed49..7cc0d281 100644
--- a/channels.c
+++ b/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"
@@ -2439,14 +2439,12 @@ x11_create_display_inet(int screen_number, int x11_display_offset)
}
if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
debug("bind port %d: %.100s", port, strerror(errno));
- shutdown(sock, SHUT_RDWR);
close(sock);
if (ai->ai_next)
continue;
for (n = 0; n < num_socks; n++) {
- shutdown(socks[n], SHUT_RDWR);
close(socks[n]);
}
num_socks = 0;
@@ -2473,7 +2471,6 @@ x11_create_display_inet(int screen_number, int x11_display_offset)
sock = socks[n];
if (listen(sock, 5) < 0) {
error("listen: %.100s", strerror(errno));
- shutdown(sock, SHUT_RDWR);
close(sock);
return NULL;
}