diff --git a/lib/bind9/getaddresses.c b/lib/bind9/getaddresses.c index accb54ae86..0d88f685a5 100644 --- a/lib/bind9/getaddresses.c +++ b/lib/bind9/getaddresses.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: getaddresses.c,v 1.1 2001/11/14 22:08:37 bwelling Exp $ */ +/* $Id: getaddresses.c,v 1.2 2001/11/14 23:03:42 bwelling Exp $ */ #include #include @@ -89,6 +89,7 @@ bind9_getaddresses(const char *hostname, in_port_t port, hints.ai_family = PF_INET6; else hints.ai_family = PF_UNSPEC; + hints.ai_socktype = SOCK_STREAM; result = getaddrinfo(hostname, NULL, &hints, &ai); switch (result) { case 0: