mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 05:28:00 +00:00
If prepub > retire, prepub now
Catch a case where if the prepublication time of the successor key is later than the retire time of the predecessor. If that is the case we should prepublish as soon as possible, a.k.a. now.
This commit is contained in:
parent
bcf8192438
commit
c08d0f7dd6
@ -287,6 +287,10 @@ keymgr_prepublication_time(dns_dnsseckey_t *key, dns_kasp_t *kasp,
|
||||
/*
|
||||
* Publish successor 'prepub' time before the 'retire' time of 'key'.
|
||||
*/
|
||||
if (prepub > retire) {
|
||||
/* We should have already prepublished the new key. */
|
||||
return (now);
|
||||
}
|
||||
return (retire - prepub);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user