]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Nit logging change
authorMatthijs Mekking <matthijs@isc.org>
Tue, 3 Sep 2024 09:50:32 +0000 (11:50 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Tue, 3 Sep 2024 10:01:21 +0000 (12:01 +0200)
Fix wrong function name (dns_dnssec_keymgr -> dns_keymgr_run).

Add error log if dns_keymgr_offline() fails.

lib/dns/zone.c

index 900844c87b66b65827ce4aba2e87781b9bafa099..24fe0bfe8a550bca4ad04fa547e0323a3124b30e 100644 (file)
@@ -22202,7 +22202,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);
@@ -22218,6 +22218,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);