]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Update Retired and Removed if we update lifetime
authorMatthijs Mekking <matthijs@isc.org>
Tue, 18 Mar 2025 11:23:34 +0000 (12:23 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Thu, 20 Mar 2025 10:12:16 +0000 (10:12 +0000)
If we are updating the lifetime, and it was not set before, also
set/update the Retired and Removed timing metadata.

lib/dns/keymgr.c

index 50c56435b3e50928b688be8059c4067d8471b4cd..9b92e8ffe83b14b17543db4f93f4b7a5ab392287 100644 (file)
@@ -411,7 +411,7 @@ keymgr_key_update_lifetime(dns_dnsseckey_t *key, dns_kasp_t *kasp,
        /* Initialize lifetime. */
        if (r != ISC_R_SUCCESS) {
                dst_key_setnum(key->key, DST_NUM_LIFETIME, lifetime);
-               return;
+               l = lifetime - 1;
        }
        /* Skip keys that are still hidden or already retiring. */
        if (g != OMNIPRESENT) {