From: Matthijs Mekking Date: Thu, 7 Jan 2021 16:41:38 +0000 (+0100) Subject: Fix signatures-validity config option X-Git-Tag: v9.16.12~40^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4520620dc18b38a0335a4f7ca7690088bb8d48f;p=thirdparty%2Fbind9.git Fix signatures-validity config option KASP was using 'signatures-validity-dnskey' instead of 'signatures-validity'. (cherry picked from commit ad63e9e4f84a126fb076fdc16aff7ebf7f21db44) --- diff --git a/CHANGES b/CHANGES index 1a63a2cffec..1f68387f661 100644 --- 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] + 5559. [bug] The --with-maxminddb=PATH form of the build-time option enabling support for libmaxminddb was not working correctly. This has been fixed. [GL #2366] diff --git a/doc/notes/notes-current.rst b/doc/notes/notes-current.rst index ea1f00a90aa..b4e36a550f5 100644 --- a/doc/notes/notes-current.rst +++ b/doc/notes/notes-current.rst @@ -69,3 +69,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] diff --git a/lib/dns/kasp.c b/lib/dns/kasp.c index fc98a6c7cd8..5a0cd302868 100644 --- a/lib/dns/kasp.c +++ b/lib/dns/kasp.c @@ -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