]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup:
authorAndreas Gustafsson <source@isc.org>
Wed, 19 Jul 2000 16:22:16 +0000 (16:22 +0000)
committerAndreas Gustafsson <source@isc.org>
Wed, 19 Jul 2000 16:22:16 +0000 (16:22 +0000)
In query_addbestns, check that both the rdataset and sigrdataset are not
pending before adding them.

bin/named/query.c

index 39466a1bda05e255243b64109df85583085e06da..baba42471ed56f6ad946070b3044235b664865b0 100644 (file)
@@ -15,7 +15,7 @@
  * SOFTWARE.
  */
 
-/* $Id: query.c,v 1.109.2.4 2000/07/10 21:59:34 gson Exp $ */
+/* $Id: query.c,v 1.109.2.5 2000/07/19 16:22:16 gson Exp $ */
 
 #include <config.h>
 
@@ -1682,7 +1682,8 @@ query_addbestns(ns_client_t *client) {
        }
 
        if ((client->message->flags & DNS_MESSAGEFLAG_CD) == 0 &&
-           rdataset->trust == dns_trust_pending)
+           (rdataset->trust == dns_trust_pending ||
+            sigrdataset->trust == dns_trust_pending))
                goto cleanup;
 
        query_addrrset(client, &fname, &rdataset, &sigrdataset, dbuf,