Used incorrect address family for mapped IPv4 addresses in acl.c. [RT #17519]

This commit is contained in:
Evan Hunt
2008-01-22 05:37:49 +00:00
parent cef715b655
commit fc7043d7d1
2 changed files with 5 additions and 2 deletions

View File

@@ -1,3 +1,6 @@
2315. [bug] Used incorrect address family for mapped IPv4
addresses in acl.c. [RT #17519]
2314. [bug] Uninitialized memory use on error path in
bin/named/lwdnoop.c. [RT #17476]

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: acl.c,v 1.42 2008/01/21 23:46:56 tbox Exp $ */
/* $Id: acl.c,v 1.43 2008/01/22 05:37:49 each Exp $ */
/*! \file */
@@ -208,7 +208,7 @@ dns_acl_match(const isc_netaddr_t *reqaddr,
}
/* Always match with host addresses. */
family = reqaddr->family;
family = addr->family;
bitlen = family == AF_INET6 ? 128 : 32;
NETADDR_TO_PREFIX_T(addr, pfx, bitlen);