summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sshd.c b/sshd.c
index 21a5f9c19..ea9293251 100644
--- a/sshd.c
+++ b/sshd.c
@@ -40,7 +40,7 @@
40 */ 40 */
41 41
42#include "includes.h" 42#include "includes.h"
43RCSID("$OpenBSD: sshd.c,v 1.227 2002/02/24 16:09:52 stevesk Exp $"); 43RCSID("$OpenBSD: sshd.c,v 1.228 2002/02/27 21:23:13 stevesk Exp $");
44 44
45#include <openssl/dh.h> 45#include <openssl/dh.h>
46#include <openssl/bn.h> 46#include <openssl/bn.h>
@@ -900,11 +900,11 @@ main(int ac, char **av)
900 * close. 900 * close.
901 */ 901 */
902 setsockopt(listen_sock, SOL_SOCKET, SO_REUSEADDR, 902 setsockopt(listen_sock, SOL_SOCKET, SO_REUSEADDR,
903 (void *) &on, sizeof(on)); 903 &on, sizeof(on));
904 linger.l_onoff = 1; 904 linger.l_onoff = 1;
905 linger.l_linger = 5; 905 linger.l_linger = 5;
906 setsockopt(listen_sock, SOL_SOCKET, SO_LINGER, 906 setsockopt(listen_sock, SOL_SOCKET, SO_LINGER,
907 (void *) &linger, sizeof(linger)); 907 &linger, sizeof(linger));
908 908
909 debug("Bind to port %s on %s.", strport, ntop); 909 debug("Bind to port %s on %s.", strport, ntop);
910 910
@@ -1150,11 +1150,11 @@ main(int ac, char **av)
1150 /* setsockopt(sock_in, SOL_SOCKET, SO_REUSEADDR, (void *)&on, sizeof(on)); */ 1150 /* setsockopt(sock_in, SOL_SOCKET, SO_REUSEADDR, (void *)&on, sizeof(on)); */
1151 linger.l_onoff = 1; 1151 linger.l_onoff = 1;
1152 linger.l_linger = 5; 1152 linger.l_linger = 5;
1153 setsockopt(sock_in, SOL_SOCKET, SO_LINGER, (void *) &linger, sizeof(linger)); 1153 setsockopt(sock_in, SOL_SOCKET, SO_LINGER, &linger, sizeof(linger));
1154 1154
1155 /* Set keepalives if requested. */ 1155 /* Set keepalives if requested. */
1156 if (options.keepalives && 1156 if (options.keepalives &&
1157 setsockopt(sock_in, SOL_SOCKET, SO_KEEPALIVE, (void *)&on, 1157 setsockopt(sock_in, SOL_SOCKET, SO_KEEPALIVE, &on,
1158 sizeof(on)) < 0) 1158 sizeof(on)) < 0)
1159 error("setsockopt SO_KEEPALIVE: %.100s", strerror(errno)); 1159 error("setsockopt SO_KEEPALIVE: %.100s", strerror(errno));
1160 1160