From: Matthijs Mekking Date: Tue, 18 Mar 2025 11:23:34 +0000 (+0100) Subject: Update Retired and Removed if we update lifetime X-Git-Tag: v9.21.7~39^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e836a87e6ffd2afb7103c2a7f06f2ef5be748d1;p=thirdparty%2Fbind9.git Update Retired and Removed if we update lifetime If we are updating the lifetime, and it was not set before, also set/update the Retired and Removed timing metadata. --- diff --git a/lib/dns/keymgr.c b/lib/dns/keymgr.c index 50c56435b3e..9b92e8ffe83 100644 --- a/lib/dns/keymgr.c +++ b/lib/dns/keymgr.c @@ -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) {