]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
reviewed: marka
authorMark Andrews <marka@isc.org>
Mon, 19 Aug 2002 21:32:56 +0000 (21:32 +0000)
committerMark Andrews <marka@isc.org>
Mon, 19 Aug 2002 21:32:56 +0000 (21:32 +0000)
developer: bwelling
don't attempt to generate a wildcard proof unless the zone is secure.

bin/named/query.c

index 894f49e1cfd37ad286f01379f3e7f62b2398204b..1c7f74a82b14a2cc4f3e499d38548a59f571e5ba 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: query.c,v 1.232 2002/08/07 02:03:49 marka Exp $ */
+/* $Id: query.c,v 1.233 2002/08/19 21:32:56 marka Exp $ */
 
 #include <config.h>
 
@@ -3320,7 +3320,7 @@ query_find(ns_client_t *client, dns_fetchevent_t *event, dns_rdatatype_t qtype)
         * Add NXT records to the authority section if they're needed for
         * DNSSEC wildcard proofs.
         */
-       if (need_wildcardproof)
+       if (need_wildcardproof && dns_db_issecure(db))
                query_addwildcardproof(client, db,
                                       dns_fixedname_name(&wildcardname),
                                       ISC_TRUE);