]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix signatures-validity config option
authorMatthijs Mekking <matthijs@isc.org>
Thu, 7 Jan 2021 16:41:38 +0000 (17:41 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Tue, 12 Jan 2021 10:54:48 +0000 (10:54 +0000)
KASP was using 'signatures-validity-dnskey' instead of
'signatures-validity'.

CHANGES
doc/notes/notes-current.rst
lib/dns/kasp.c

diff --git a/CHANGES b/CHANGES
index 97ebc9f6c870628487959a60954956600d16d9e6..d5603fca4d049b21e72ce910b5f65e54ab09e2d8 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+5561.  [bug]           KASP incorrectly set signature validity to the value
+                       of the DNSKEY signature validity. This is now fixed.
+                       [GL #2383]
+
 5560.  [func]          The default value of "max-stale-ttl" has been changed
                        from 12 hours to 1 day and the default value of
                        "stale-answer-ttl" has been changed from 1 second to
index 60cd4d2ed5b9a8ded5b0bd2daf7badac2f835e1c..eec08c3a79c5d7e4add2b79abc75cf041b86b9bf 100644 (file)
@@ -65,3 +65,6 @@ Bug Fixes
 
 - Prevent rbtdb instances being destroyed by multiple threads at the same
   time. This can trigger assertion failures. [GL #2355]
+
+- KASP incorrectly set signature validity to the value of the DNSKEY signature
+  validity. This is now fixed. [GL #2383]
index fc98a6c7cd81736c5785f616bfe9dc00f6123a31..5a0cd3028687c544ab5cb7d3dd5a379b58dca8a6 100644 (file)
@@ -184,7 +184,7 @@ dns_kasp_setsigvalidity_dnskey(dns_kasp_t *kasp, uint32_t value) {
        REQUIRE(DNS_KASP_VALID(kasp));
        REQUIRE(!kasp->frozen);
 
-       kasp->signatures_validity = value;
+       kasp->signatures_validity_dnskey = value;
 }
 
 dns_ttl_t