diff options
author | Damien Miller <djm@mindrot.org> | 2003-05-14 13:42:23 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2003-05-14 13:42:23 +1000 |
commit | 2372ace57287c6963a5790fb254e47de57537e0a (patch) | |
tree | 20a109f7f5c789a79599a52bcf6a6346fb794293 /sshd.c | |
parent | 44e72a764f7febd041263c61c6931896a67d338e (diff) |
- markus@cvs.openbsd.org 2003/04/14 14:17:50
[channels.c sshconnect.c sshd.c ssh-keyscan.c]
avoid hardcoded SOCK_xx; with itojun@; should allow ssh over SCTP
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)); |