diff options
author | Darren Tucker <dtucker@zip.com.au> | 2003-12-09 19:15:11 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2003-12-09 19:15:11 +1100 |
commit | 3175eb9a5a426f6e494d523fe6e96fcc426995c1 (patch) | |
tree | 692cfd00e30c0ee410fca3b0d8e8febf5bfcfea7 /sshd.c | |
parent | 1fb0425359f7753d0163c5dce6a3335359da8c5a (diff) |
- markus@cvs.openbsd.org 2003/12/02 17:01:15
[channels.c session.c ssh-agent.c ssh.h sshd.c]
use SSH_LISTEN_BACKLOG (=128) in listen(2).
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -42,7 +42,7 @@ | |||
42 | */ | 42 | */ |
43 | 43 | ||
44 | #include "includes.h" | 44 | #include "includes.h" |
45 | RCSID("$OpenBSD: sshd.c,v 1.281 2003/11/10 16:23:41 jakob Exp $"); | 45 | RCSID("$OpenBSD: sshd.c,v 1.282 2003/12/02 17:01:15 markus Exp $"); |
46 | 46 | ||
47 | #include <openssl/dh.h> | 47 | #include <openssl/dh.h> |
48 | #include <openssl/bn.h> | 48 | #include <openssl/bn.h> |
@@ -1161,7 +1161,7 @@ main(int ac, char **av) | |||
1161 | 1161 | ||
1162 | /* Start listening on the port. */ | 1162 | /* Start listening on the port. */ |
1163 | logit("Server listening on %s port %s.", ntop, strport); | 1163 | logit("Server listening on %s port %s.", ntop, strport); |
1164 | if (listen(listen_sock, 5) < 0) | 1164 | if (listen(listen_sock, SSH_LISTEN_BACKLOG) < 0) |
1165 | fatal("listen: %.100s", strerror(errno)); | 1165 | fatal("listen: %.100s", strerror(errno)); |
1166 | 1166 | ||
1167 | } | 1167 | } |