2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-05 17:15:31 +00:00

2324. [bug] Fix IPv6 matching against "any;" [RT #17533]

This commit is contained in:
Mark Andrews
2008-01-27 02:13:34 +00:00
parent 7539c231d4
commit 1fa2ce7eae
3 changed files with 16 additions and 8 deletions

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: acl.c,v 1.43 2008/01/22 05:37:49 each Exp $ */
/* $Id: acl.c,v 1.44 2008/01/27 02:13:34 marka Exp $ */
/*! \file */
@@ -220,6 +220,8 @@ dns_acl_match(const isc_netaddr_t *reqaddr,
/* Found a match. */
if (result == ISC_R_SUCCESS && node != NULL) {
if (node->bit == 0)
family = AF_INET;
match_num = node->node_num[ISC_IS6(family)];
if (*(isc_boolean_t *) node->data[ISC_IS6(family)] == ISC_TRUE)
*match = match_num;