]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
618. [bug] Queries to a signed zone could sometimes cause
authorBrian Wellington <source@isc.org>
Sat, 16 Dec 2000 02:30:58 +0000 (02:30 +0000)
committerBrian Wellington <source@isc.org>
Sat, 16 Dec 2000 02:30:58 +0000 (02:30 +0000)
                        an assertion failure.

CHANGES
bin/named/query.c

diff --git a/CHANGES b/CHANGES
index 46bc523037baa5e1d75c4b351c5a2caeeeb0a541..e134e056e9757142db4ca06eebb419ddde419acc 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,4 +1,7 @@
 
+ 618.  [bug]           Queries to a signed zone could sometimes cause
+                       an assertion failure.
+
  617.  [bug]           When using dynamic update to add a new RR to an
                        existing RRset with a different TTL, the journal
                        entries generated from the update did not include
index d06c023e983b816af89ff2afc90aacb7e77b7cd2..48469a7800673e567a9c8d576a522db32df51ec1 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: query.c,v 1.161 2000/12/11 19:19:12 bwelling Exp $ */
+/* $Id: query.c,v 1.162 2000/12/16 02:30:58 bwelling Exp $ */
 
 #include <config.h>
 
@@ -1221,8 +1221,12 @@ query_addadditional(void *arg, dns_name_t *name, dns_rdatatype_t qtype) {
                                        goto addname;
                                if (WANTDNSSEC(client) && sigrdataset == NULL)
                                        goto addname;
-                       } else
+                       } else {
                                dns_rdataset_disassociate(rdataset);
+                               if (sigrdataset != NULL &&
+                                   dns_rdataset_isassociated(sigrdataset))
+                                       dns_rdataset_disassociate(sigrdataset);
+                       }
                }
                result = dns_db_findrdataset(db, node, version,
                                             dns_rdatatype_aaaa, 0,