diff options
author | 2003-04-14 14:17:50 +0000 | |
---|---|---|
committer | 2003-04-14 14:17:50 +0000 | |
commit | 839626b35971eb8712c5343a81d1c8795922338d (patch) | |
tree | c8e07f0d6f79bf5147355920eaa754883b8e8d5f /usr.bin/ssh/ssh-keyscan.c | |
parent | Unlink FIFO and pid files on clean shutdown. PR#3199 (diff) | |
download | wireguard-openbsd-839626b35971eb8712c5343a81d1c8795922338d.tar.xz wireguard-openbsd-839626b35971eb8712c5343a81d1c8795922338d.zip |
avoid hardcoded SOCK_xx; with itojun@; should allow ssh over SCTP
Diffstat (limited to 'usr.bin/ssh/ssh-keyscan.c')
-rw-r--r-- | usr.bin/ssh/ssh-keyscan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-keyscan.c b/usr.bin/ssh/ssh-keyscan.c index 2ff9f19206a..910d86f30a0 100644 --- a/usr.bin/ssh/ssh-keyscan.c +++ b/usr.bin/ssh/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 <sys/queue.h> #include <errno.h> @@ -378,7 +378,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; |