]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2773. [bug] In autosigned zones, the SOA could be signed
authorEvan Hunt <each@isc.org>
Wed, 18 Nov 2009 21:22:31 +0000 (21:22 +0000)
committerEvan Hunt <each@isc.org>
Wed, 18 Nov 2009 21:22:31 +0000 (21:22 +0000)
with the KSK. [RT #20628]

CHANGES
bin/named/update.c
lib/dns/zone.c

diff --git a/CHANGES b/CHANGES
index 0e2440074d3833f1f401d818b01027e3e44e8f73..7bc19c2924ef67fc4f2eb09e5393015911783ded 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+2773.  [bug]           In autosigned zones, the SOA could be signed
+                       with the KSK. [RT #20628]
+
        --- 9.7.0b3 released ---
 
 2772.  [security]      When validating, track whether pending data was from
index d7a054beb23b435c034ca21536f41f6aef38da94..a31606a4a9373098e1ebbde5afcb23cfc2fb6c44 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: update.c,v 1.168 2009/11/09 01:28:32 each Exp $ */
+/* $Id: update.c,v 1.169 2009/11/18 21:22:31 each Exp $ */
 
 #include <config.h>
 
@@ -1926,7 +1926,7 @@ add_sigs(ns_client_t *client, dns_zone_t *zone, dns_db_t *db,
                        if (type == dns_rdatatype_dnskey) {
                                if (!KSK(keys[i]) && keyset_kskonly)
                                        continue;
-                       } else if (!KSK(keys[i]))
+                       } else if (KSK(keys[i]))
                                continue;
                } else if (REVOKE(keys[i]) && type != dns_rdatatype_dnskey)
                        continue;
index ea26c1e5ff77717350882a17d34b445732ba77de..1473360003857f9338a9ebae2595e5e8ab41b9fe 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: zone.c,v 1.529 2009/11/12 23:47:59 tbox Exp $ */
+/* $Id: zone.c,v 1.530 2009/11/18 21:22:31 each Exp $ */
 
 /*! \file */
 
@@ -4586,7 +4586,7 @@ add_sigs(dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name,
                        if (type == dns_rdatatype_dnskey) {
                                if (!KSK(keys[i]) && keyset_kskonly)
                                        continue;
-                       } else if (!KSK(keys[i]))
+                       } else if (KSK(keys[i]))
                                continue;
                } else if (REVOKE(keys[i]) && type != dns_rdatatype_dnskey)
                                continue;