diff options
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 5 |
1 files changed, 3 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.264 2003/04/08 20:21:29 itojun Exp $"); | 45 | RCSID("$OpenBSD: sshd.c,v 1.265 2003/04/14 14:17:50 markus Exp $"); |
46 | 46 | ||
47 | #include <openssl/dh.h> | 47 | #include <openssl/dh.h> |
48 | #include <openssl/bn.h> | 48 | #include <openssl/bn.h> |
@@ -1153,7 +1153,8 @@ main(int ac, char **av) | |||
1153 | continue; | 1153 | continue; |
1154 | } | 1154 | } |
1155 | /* Create socket for listening. */ | 1155 | /* Create socket for listening. */ |
1156 | listen_sock = socket(ai->ai_family, SOCK_STREAM, 0); | 1156 | listen_sock = socket(ai->ai_family, ai->ai_socktype, |
1157 | ai->ai_protocol); | ||
1157 | if (listen_sock < 0) { | 1158 | if (listen_sock < 0) { |
1158 | /* kernel may not support ipv6 */ | 1159 | /* kernel may not support ipv6 */ |
1159 | verbose("socket: %.100s", strerror(errno)); | 1160 | verbose("socket: %.100s", strerror(errno)); |