summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
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 4c14ed491..7cc0d281e 100644
--- a/channels.c
+++ b/channels.c
@@ -39,7 +39,7 @@
39 */ 39 */
40 40
41#include "includes.h" 41#include "includes.h"
42RCSID("$OpenBSD: channels.c,v 1.143 2001/12/05 10:06:12 deraadt Exp $"); 42RCSID("$OpenBSD: channels.c,v 1.144 2001/12/06 18:02:32 stevesk Exp $");
43 43
44#include "ssh.h" 44#include "ssh.h"
45#include "ssh1.h" 45#include "ssh1.h"
@@ -2439,14 +2439,12 @@ x11_create_display_inet(int screen_number, int x11_display_offset)
2439 } 2439 }
2440 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { 2440 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
2441 debug("bind port %d: %.100s", port, strerror(errno)); 2441 debug("bind port %d: %.100s", port, strerror(errno));
2442 shutdown(sock, SHUT_RDWR);
2443 close(sock); 2442 close(sock);
2444 2443
2445 if (ai->ai_next) 2444 if (ai->ai_next)
2446 continue; 2445 continue;
2447 2446
2448 for (n = 0; n < num_socks; n++) { 2447 for (n = 0; n < num_socks; n++) {
2449 shutdown(socks[n], SHUT_RDWR);
2450 close(socks[n]); 2448 close(socks[n]);
2451 } 2449 }
2452 num_socks = 0; 2450 num_socks = 0;
@@ -2473,7 +2471,6 @@ x11_create_display_inet(int screen_number, int x11_display_offset)
2473 sock = socks[n]; 2471 sock = socks[n];
2474 if (listen(sock, 5) < 0) { 2472 if (listen(sock, 5) < 0) {
2475 error("listen: %.100s", strerror(errno)); 2473 error("listen: %.100s", strerror(errno));
2476 shutdown(sock, SHUT_RDWR);
2477 close(sock); 2474 close(sock);
2478 return NULL; 2475 return NULL;
2479 } 2476 }