mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 16:52:04 -04:00
Nit logging change
Fix wrong function name (dns_dnssec_keymgr -> dns_keymgr_run).
Add error log if dns_keymgr_offline() fails.
(cherry picked from commit 911daeb306)
This commit is contained in:
parent
fa20a1df39
commit
66f850f01c
1 changed files with 8 additions and 1 deletions
|
|
@ -22285,7 +22285,7 @@ zone_rekey(dns_zone_t *zone) {
|
|||
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
dnssec_log(zone, ISC_LOG_ERROR,
|
||||
"zone_rekey:dns_dnssec_keymgr "
|
||||
"zone_rekey:dns_keymgr_run "
|
||||
"failed: %s",
|
||||
isc_result_totext(result));
|
||||
KASP_UNLOCK(kasp);
|
||||
|
|
@ -22301,6 +22301,13 @@ zone_rekey(dns_zone_t *zone) {
|
|||
result = dns_keymgr_offline(&zone->origin, &keys, kasp, now,
|
||||
&nexttime);
|
||||
dns_zone_unlock_keyfiles(zone);
|
||||
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
dnssec_log(zone, ISC_LOG_ERROR,
|
||||
"zone_rekey:dns_keymgr_offline "
|
||||
"failed: %s",
|
||||
isc_result_totext(result));
|
||||
}
|
||||
}
|
||||
|
||||
KASP_UNLOCK(kasp);
|
||||
|
|
|
|||
Loading…
Reference in a new issue