From 5cb7c19c2335d1d6cc2cb55edbc17952a0133ebf Mon Sep 17 00:00:00 2001 From: Matthijs Mekking Date: Tue, 18 Mar 2025 12:23:34 +0100 Subject: [PATCH] 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. (cherry picked from commit 3e836a87e6ffd2afb7103c2a7f06f2ef5be748d1) --- lib/dns/keymgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dns/keymgr.c b/lib/dns/keymgr.c index 0da26f89ec..f0372a4ad7 100644 --- a/lib/dns/keymgr.c +++ b/lib/dns/keymgr.c @@ -412,7 +412,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) {