]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix off by one error in dnssec-ksr sign
authorMatthijs Mekking <matthijs@isc.org>
Thu, 2 Apr 2026 08:01:27 +0000 (10:01 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Tue, 7 Apr 2026 08:32:58 +0000 (08:32 +0000)
If the inception time of the signature is exactly equal to the
inactive time of the key, still include the signature. Otherwise there
may be corner cases where signatures are omitted erroneously.

(cherry picked from commit bc6dad585d897234cae63f3ebe2d8b962329ef35)

bin/dnssec/dnssec-ksr.c

index 01df9843cc21eb9e8482ee4d137cb58231408790..fbad0b47b94ee5b0c5c7ab6790e63db4bc3476a1 100644 (file)
@@ -705,7 +705,7 @@ sign_rrset(ksr_ctx_t *ksr, isc_stdtime_t inception, isc_stdtime_t expiration,
                if (act > inception) {
                        continue;
                }
-               if (inact != 0 && inception >= inact) {
+               if (inact != 0 && inception > inact) {
                        continue;
                }