summaryrefslogtreecommitdiff
path: root/usr.sbin/faithd
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-09-02 23:35:45 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-09-02 23:35:45 +0000
commit9b09e7650f65721c3cb81403d85f0d3a47bba08e (patch)
tree98ef9deca6476c07ca17c4e47902c2e6327a5f81 /usr.sbin/faithd
parent7aadc4fd6f58893f83ff0e74a58a52cd4b0fae32 (diff)
make sure to open TCP socket (in case getaddrinfo supports SCTP). sync w/kame
Diffstat (limited to 'usr.sbin/faithd')
-rw-r--r--usr.sbin/faithd/ftp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/faithd/ftp.c b/usr.sbin/faithd/ftp.c
index a5e425f81a0..0334bf10584 100644
--- a/usr.sbin/faithd/ftp.c
+++ b/usr.sbin/faithd/ftp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ftp.c,v 1.12 2003/09/02 22:55:26 deraadt Exp $ */
+/* $OpenBSD: ftp.c,v 1.13 2003/09/02 23:35:44 itojun Exp $ */
/* $KAME: ftp.c,v 1.20 2002/09/08 01:12:30 itojun Exp $ */
/*
@@ -817,6 +817,7 @@ eprtparamfail:
memset(&hints, 0, sizeof(hints));
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
+ hints.ai_protocol = IPPROTO_TCP;
error = getaddrinfo(hostp, portp, &hints, &res);
if (error) {
n = snprintf(sbuf, sizeof(sbuf),