diff options
author | Damien Miller <djm@mindrot.org> | 2003-05-14 05:42:23 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2003-05-14 05:42:23 +0200 |
commit | 2372ace57287c6963a5790fb254e47de57537e0a (patch) | |
tree | 20a109f7f5c789a79599a52bcf6a6346fb794293 /ssh-keyscan.c | |
parent | - naddy@cvs.openbsd.org 2003/04/12 11:40:15 (diff) | |
download | openssh-2372ace57287c6963a5790fb254e47de57537e0a.tar.xz openssh-2372ace57287c6963a5790fb254e47de57537e0a.zip |
- 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 'ssh-keyscan.c')
-rw-r--r-- | ssh-keyscan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh-keyscan.c b/ssh-keyscan.c index 5b4eb82d1..ac3056ff2 100644 --- a/ssh-keyscan.c +++ b/ssh-keyscan.c @@ -7,7 +7,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: ssh-keyscan.c,v 1.41 2003/02/16 17:09:57 markus Exp $"); +RCSID("$OpenBSD: ssh-keyscan.c,v 1.42 2003/04/14 14:17:50 markus Exp $"); #include "openbsd-compat/sys-queue.h" @@ -397,7 +397,7 @@ tcpconnect(char *host) if ((gaierr = getaddrinfo(host, strport, &hints, &aitop)) != 0) fatal("getaddrinfo %s: %s", host, gai_strerror(gaierr)); for (ai = aitop; ai; ai = ai->ai_next) { - s = socket(ai->ai_family, SOCK_STREAM, 0); + s = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); if (s < 0) { error("socket: %s", strerror(errno)); continue; |