Fix a bug causing dns_acl_isany() to return spurious results [rt18000]

This commit is contained in:
Evan Hunt 2008-04-29 01:01:42 +00:00
parent 2294423014
commit 28ad0be64e
2 changed files with 6 additions and 3 deletions

View file

@ -1,3 +1,6 @@
2365. [bug] Fix an bug that caused dns_acl_isany() to return
spurious results. [RT #18000]
2364. [bug] named could trigger a assertion when serving a
malformed signed zone. [RT #17828]
@ -6,7 +9,7 @@
2362. [cleanup] Make "rrset-order fixed" a compile-time option.
settable by "./configure --enable-fixed-rrset".
Disabled by default. [rt17977]
Disabled by default. [RT #17977]
2361. [bug] "recursion" statistics counter could be counted
multiple times for a single query. [RT #17990]

View file

@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: acl.c,v 1.44 2008/01/27 02:13:34 marka Exp $ */
/* $Id: acl.c,v 1.45 2008/04/29 01:01:42 each Exp $ */
/*! \file */
@ -148,7 +148,7 @@ dns_acl_isanyornone(dns_acl_t *acl, isc_boolean_t pos)
return (ISC_FALSE);
if (acl->iptable->radix->head->prefix->bitlen == 0 &&
*(isc_boolean_t *) (acl->iptable->radix->head->data) == pos)
*(isc_boolean_t *) (acl->iptable->radix->head->data[0]) == pos)
return (ISC_TRUE);
return (ISC_FALSE); /* All others */