]> 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:04:14 +0000 (01:04 +0000)
committerEvan Hunt <each@isc.org>
Tue, 29 Apr 2008 01:04:14 +0000 (01:04 +0000)
CHANGES
lib/dns/acl.c

diff --git a/CHANGES b/CHANGES
index 3ee3b3ed55f8a67aba7caa4981a252c303d530f5..34876ea2fa0eb36b627b04a3a2c499f06d47f6f3 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 d8d0b9bcfa34fda179ad7b0591915574626ba6a6..bb54a8a319efaefa270af0ea8241b5cd33e2a480 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: acl.c,v 1.37.2.6 2008/01/27 02:12:51 marka Exp $ */
+/* $Id: acl.c,v 1.37.2.7 2008/04/29 01:04:14 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 */