mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-03 14:00:47 -05:00
[v9_9] Minor improvements to code handling managed keys
4812. [bug] Minor improvements to stability and consistency of code
handling managed keys. [RT #46468]
(cherry picked from commit 54c1627c6f)
This commit is contained in:
parent
ec547a9877
commit
c799c10ffe
3 changed files with 9 additions and 6 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,3 +1,6 @@
|
|||
4812. [bug] Minor improvements to stability and consistency of code
|
||||
handling managed keys. [RT #46468]
|
||||
|
||||
4810. [test] The chain system test failed if the IPv6 interfaces
|
||||
were not configured. [RT #46508]
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ sub printstatus ($) {
|
|||
my $a = shift;
|
||||
if ($a->{removehd} ne "19700101000000") {
|
||||
printf " untrusted and to be removed at %s\n", ext8601 $a->{removehd};
|
||||
} elsif ($a->{addhd} lt $now) {
|
||||
} elsif ($a->{addhd} le $now) {
|
||||
printf " trusted\n";
|
||||
} else {
|
||||
printf " waiting for %s\n", ext8601 $a->{addhd};
|
||||
|
|
|
|||
|
|
@ -9126,7 +9126,7 @@ zone_refreshkeys(dns_zone_t *zone) {
|
|||
}
|
||||
|
||||
/* Acceptance timer expired? */
|
||||
if (kd.addhd < now)
|
||||
if (kd.addhd <= now)
|
||||
timer = kd.addhd;
|
||||
|
||||
/* Or do we just need to refresh the keyset? */
|
||||
|
|
@ -9228,12 +9228,10 @@ zone_refreshkeys(dns_zone_t *zone) {
|
|||
isc_time_formattimestamp(&zone->refreshkeytime, timebuf, 80);
|
||||
dns_zone_log(zone, ISC_LOG_DEBUG(1), "retry key refresh: %s",
|
||||
timebuf);
|
||||
|
||||
if (!fetching)
|
||||
DNS_ZONE_CLRFLAG(zone, DNS_ZONEFLG_REFRESHING);
|
||||
}
|
||||
|
||||
UNLOCK_ZONE(zone);
|
||||
if (!fetching)
|
||||
DNS_ZONE_CLRFLAG(zone, DNS_ZONEFLG_REFRESHING);
|
||||
|
||||
dns_diff_clear(&diff);
|
||||
if (ver != NULL) {
|
||||
|
|
@ -9242,6 +9240,8 @@ zone_refreshkeys(dns_zone_t *zone) {
|
|||
}
|
||||
dns_db_detach(&db);
|
||||
|
||||
UNLOCK_ZONE(zone);
|
||||
|
||||
INSIST(ver == NULL);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue