2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

lwres_getaddrsbyname called with v4 flag when v6 required.

This commit is contained in:
Mark Andrews
2000-02-01 06:55:36 +00:00
parent f738cdef3d
commit c69eec29aa

View File

@@ -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);