summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/channels.c b/channels.c
index 5a2605f91..14405bd4b 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.198 2003/11/21 11:57:03 djm Exp $"); 42RCSID("$OpenBSD: channels.c,v 1.199 2003/12/02 17:01:14 markus Exp $");
43 43
44#include "ssh.h" 44#include "ssh.h"
45#include "ssh1.h" 45#include "ssh1.h"
@@ -2195,7 +2195,7 @@ channel_setup_fwd_listener(int type, const char *listen_addr, u_short listen_por
2195 continue; 2195 continue;
2196 } 2196 }
2197 /* Start listening for connections on the socket. */ 2197 /* Start listening for connections on the socket. */
2198 if (listen(sock, 5) < 0) { 2198 if (listen(sock, SSH_LISTEN_BACKLOG) < 0) {
2199 error("listen: %.100s", strerror(errno)); 2199 error("listen: %.100s", strerror(errno));
2200 close(sock); 2200 close(sock);
2201 continue; 2201 continue;
@@ -2550,7 +2550,7 @@ x11_create_display_inet(int x11_display_offset, int x11_use_localhost,
2550 /* Start listening for connections on the socket. */ 2550 /* Start listening for connections on the socket. */
2551 for (n = 0; n < num_socks; n++) { 2551 for (n = 0; n < num_socks; n++) {
2552 sock = socks[n]; 2552 sock = socks[n];
2553 if (listen(sock, 5) < 0) { 2553 if (listen(sock, SSH_LISTEN_BACKLOG) < 0) {
2554 error("listen: %.100s", strerror(errno)); 2554 error("listen: %.100s", strerror(errno));
2555 close(sock); 2555 close(sock);
2556 return -1; 2556 return -1;