From 4a8fa74137aa6cd203fdfa17a81f4b884142d00e Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 5 Aug 2009 02:11:48 +0000 Subject: [PATCH] 2643. [bug] Stub zones interacted badly with NSEC3 support. [RT #19777] --- CHANGES | 3 +++ bin/named/query.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index ad184b8826..3c17ad9237 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +2643. [bug] Stub zones interacted badly with NSEC3 support. + [RT #19777] + 2642. [bug] nsupdate could dump core on solaris when reading improperly formatted key files. [RT #20015] diff --git a/bin/named/query.c b/bin/named/query.c index d52a286c46..e49e925975 100644 --- a/bin/named/query.c +++ b/bin/named/query.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: query.c,v 1.313.20.8 2009/06/26 08:03:47 jinmei Exp $ */ +/* $Id: query.c,v 1.313.20.9 2009/08/05 02:11:48 marka Exp $ */ /*! \file */ @@ -2731,7 +2731,7 @@ query_addds(ns_client_t *client, dns_db_t *db, dns_dbnode_t *node, return; addnsec3: - if (dns_db_iscache(db)) + if (!dns_db_iszone(db)) goto cleanup; /* * Add the NSEC3 which proves the DS does not exist.