]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2032. [bug] Remove a INSIST in query_addadditional2(). [RT #16074]
authorMark Andrews <marka@isc.org>
Fri, 26 May 2006 02:48:26 +0000 (02:48 +0000)
committerMark Andrews <marka@isc.org>
Fri, 26 May 2006 02:48:26 +0000 (02:48 +0000)
CHANGES
bin/named/query.c

diff --git a/CHANGES b/CHANGES
index 1b68f25f573e89225b5592b7473f7a8fe80f0d13..d94434d91e1812c33844b1eb8041c76a73486961 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,8 @@
 
        --- 9.4.0a6 released ---
 
+2032.  [bug]           Remove a INSIST in query_addadditional2(). [RT #16074]
+
 2031.  [bug]           Emit a error message when "rndc refresh" is called on
                        a non slave/stub zone. [RT # 16073]
 
index 2a65957a0f85d21fa85f6047c53949c3c848dd21..96881bdd4b33104b164b371d7ab804718dce20ac 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: query.c,v 1.257.18.30 2006/05/18 03:14:03 marka Exp $ */
+/* $Id: query.c,v 1.257.18.31 2006/05/26 02:48:26 marka Exp $ */
 
 /*! \file */
 
@@ -1761,8 +1761,6 @@ query_addadditional2(void *arg, dns_name_t *name, dns_rdatatype_t qtype) {
        /* Find AAAA RRset with sig RRset */
        result = dns_db_findrdataset(db, node, version, dns_rdatatype_aaaa,
                                     0, client->now, rdataset, sigrdataset);
-       /* The NXDOMAIN case should be covered above */
-       INSIST(result != DNS_R_NCACHENXDOMAIN);
        /*
         * If we can't promote glue/pending from the cache to secure
         * then drop it.
@@ -1777,13 +1775,6 @@ query_addadditional2(void *arg, dns_name_t *name, dns_rdatatype_t qtype) {
                        dns_rdataset_disassociate(sigrdataset);
                result = ISC_R_NOTFOUND;
        }
-       if (result == DNS_R_NCACHENXRRSET) {
-               dns_rdataset_disassociate(rdataset);
-               /*
-                * Negative cache entries don't have sigrdatasets.
-                */
-               INSIST(! dns_rdataset_isassociated(sigrdataset));
-       }
        if (result == ISC_R_SUCCESS) {
                ISC_LIST_APPEND(cfname.list, rdataset, link);
                rdataset = NULL;