]> 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>
Thu, 2 Apr 2026 14:47:18 +0000 (14:47 +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.

bin/dnssec/dnssec-ksr.c

index f76b07c33409e387c35926cd8c570ec44320ffd5..d2a387290906557accb857b622a348415803c9c1 100644 (file)
@@ -674,7 +674,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;
                }