From 3e712d3702ac9104b6dcc8cb86fb79feb37de708 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 20 Jan 2009 01:46:23 +0000 Subject: [PATCH] 2530. [bug] named failed to reject insecure to secure transitions via UPDATE. [RT #19101] --- CHANGES | 3 +++ bin/named/update.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 582d258e0f..ecc7bd6f37 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +2530. [bug] named failed to reject insecure to secure transitions + via UPDATE. [RT #19101] + 2529. [cleanup] Upgrade libtool to silence complaints from recent version of autoconf. [RT #18657] diff --git a/bin/named/update.c b/bin/named/update.c index c25ef69958..a25d14a5a1 100644 --- a/bin/named/update.c +++ b/bin/named/update.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: update.c,v 1.151.12.2 2009/01/18 23:47:34 tbox Exp $ */ +/* $Id: update.c,v 1.151.12.3 2009/01/20 01:46:23 marka Exp $ */ #include @@ -3971,7 +3971,7 @@ update_action(isc_task_t *task, isc_event_t *event) { } #endif #ifndef ALLOW_INSECURE_TO_SECURE - if (had_dnskey && !has_dnskey) { + if (!had_dnskey && has_dnskey) { update_log(client, zone, LOGLEVEL_PROTOCOL, "update rejected: DNSKEY record added"); result = DNS_R_REFUSED;