From cc3ed192b030ccf9a903a4a7c8667cda8ad23eeb Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Fri, 6 Nov 2009 08:38:56 +0000 Subject: [PATCH] 2754. [bug] Secure-to-insecure transitions failed when zone was signed with NSEC3. [RT #20587] --- CHANGES | 3 +++ bin/named/update.c | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index 2ec43ff45b..dd11d75f41 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +2754. [bug] Secure-to-insecure transitions failed when zone + was signed with NSEC3. [RT #20587] + 2753. [bug] Removed an unnecessary warning that could appear when building an NSEC chain. [RT #20588] diff --git a/bin/named/update.c b/bin/named/update.c index 140c8493af..0c82ebbf86 100644 --- a/bin/named/update.c +++ b/bin/named/update.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: update.c,v 1.166 2009/10/27 05:42:25 marka Exp $ */ +/* $Id: update.c,v 1.167 2009/11/06 08:38:56 each Exp $ */ #include @@ -3043,14 +3043,15 @@ check_dnssec(ns_client_t *client, dns_zone_t *zone, dns_db_t *db, CHECK(dns_nsec_nseconly(db, ver, &flag)); if (flag) - CHECK(dns_nsec3_activex(db, ver, ISC_FALSE, privatetype, &flag)); + CHECK(dns_nsec3_activex(db, ver, ISC_FALSE, + privatetype, &flag)); if (flag) { update_log(client, zone, ISC_LOG_WARNING, "NSEC only DNSKEYs and NSEC3 chains not allowed"); } else { CHECK(get_iterations(db, ver, privatetype, &iterations)); CHECK(dns_nsec3_maxiterations(db, ver, client->mctx, &max)); - if (iterations > max) { + if (max != 0 && iterations > max) { flag = ISC_TRUE; update_log(client, zone, ISC_LOG_WARNING, "too many NSEC3 iterations (%u) for "