mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-15 07:02:40 -04:00
Report the key name that failed in retry_keyfetch
When there are multiple managed trust anchors we need to know the
name of the trust anchor that is failing. Extend the error message
to include the trust anchor name.
(cherry picked from commit fb7b7ac495)
This commit is contained in:
parent
a0405b3511
commit
4a7c78b290
1 changed files with 5 additions and 2 deletions
|
|
@ -11033,6 +11033,11 @@ retry_keyfetch(dns_keyfetch_t *kfetch, dns_name_t *kname) {
|
|||
isc_time_t timenow, timethen;
|
||||
dns_zone_t *zone = kfetch->zone;
|
||||
bool free_needed;
|
||||
char namebuf[DNS_NAME_FORMATSIZE];
|
||||
|
||||
dns_name_format(kname, namebuf, sizeof(namebuf));
|
||||
dnssec_log(zone, ISC_LOG_WARNING,
|
||||
"Failed to create fetch for %s DNSKEY update", namebuf);
|
||||
|
||||
/*
|
||||
* Error during a key fetch; cancel and retry in an hour.
|
||||
|
|
@ -11044,8 +11049,6 @@ retry_keyfetch(dns_keyfetch_t *kfetch, dns_name_t *kname) {
|
|||
dns_rdataset_disassociate(&kfetch->keydataset);
|
||||
dns_name_free(kname, zone->mctx);
|
||||
isc_mem_putanddetach(&kfetch->mctx, kfetch, sizeof(*kfetch));
|
||||
dnssec_log(zone, ISC_LOG_WARNING,
|
||||
"Failed to create fetch for DNSKEY update");
|
||||
|
||||
if (!DNS_ZONE_FLAG(zone, DNS_ZONEFLG_EXITING)) {
|
||||
/* Don't really retry if we are exiting */
|
||||
|
|
|
|||
Loading…
Reference in a new issue