From c69eec29aaf62a88e1c5a1720c6714c4014021ef Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 1 Feb 2000 06:55:36 +0000 Subject: [PATCH] lwres_getaddrsbyname called with v4 flag when v6 required. --- lib/lwres/getaddrinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lwres/getaddrinfo.c b/lib/lwres/getaddrinfo.c index ee011096cc..b223866058 100644 --- a/lib/lwres/getaddrinfo.c +++ b/lib/lwres/getaddrinfo.c @@ -3,7 +3,7 @@ * The Berkeley Software Design Inc. software License Agreement specifies * the terms and conditions for redistribution. * - * BSDI $Id: getaddrinfo.c,v 1.8 2000/01/28 01:56:36 marka Exp $ + * BSDI $Id: getaddrinfo.c,v 1.9 2000/02/01 06:55:36 marka Exp $ */ @@ -391,7 +391,7 @@ add_ipv6(const char *hostname, int flags, struct addrinfo **aip, SIN6(ai->ai_addr)->sin6_port = port; memcpy(&SIN6(ai->ai_addr)->sin6_addr, v6_loop, 16); } else if (lwres_getaddrsbyname(lwrctx, hostname, - LWRES_ADDRTYPE_V4, &by) == 0) { + LWRES_ADDRTYPE_V6, &by) == 0) { for (i = 0; i < by->naddrs; i++) { if ((ai = ai_clone(*aip, AF_INET6)) == NULL) { freeaddrinfo(*aip);