]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix a bug causing dns_acl_isany() to return spurious results [rt18000]
authorEvan Hunt <each@isc.org>
Tue, 29 Apr 2008 01:01:42 +0000 (01:01 +0000)
committerEvan Hunt <each@isc.org>
Tue, 29 Apr 2008 01:01:42 +0000 (01:01 +0000)
CHANGES
lib/dns/acl.c

diff --git a/CHANGES b/CHANGES
index fcd4e0fbcaf7097758a14ad42cc91b897afe5163..147aeb544f8c464eeb97d943de9331f975adba37 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -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]
index f6160b70ac8ce4d3a5e3e76ac13fcf1299ef534f..533df2ebca65d041f1dc753ec8bacb01bdf76f99 100644 (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 */