From: Aram Sargsyan Date: Mon, 26 Jan 2026 15:34:00 +0000 (+0000) Subject: Fix a bug in zone_loaddone() X-Git-Tag: v9.21.18~7^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31290eccb1246cc1aefd8a062e36de12ca0f24e1;p=thirdparty%2Fbind9.git Fix a bug in zone_loaddone() The zone_loaddone() function disables database notifications for a catalog zones and response policy zones (RPZ) when loading had failed. Howerer, the 'result != ISC_R_SUCCESS' check is insufficient, because the DNS_R_SEENINCLUDE result also indicates success. Add a second condition for the "if" block. --- diff --git a/lib/dns/zone.c b/lib/dns/zone.c index 8a6b5519c30..855ac052ce1 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -17559,7 +17559,7 @@ zone_loaddone(void *arg, isc_result_t result) { * If zone loading failed, remove the update db callbacks prior * to calling the list of callbacks in the zone load structure. */ - if (result != ISC_R_SUCCESS) { + if (result != ISC_R_SUCCESS && result != DNS_R_SEENINCLUDE) { dns_zone_rpz_disable_db(zone, load->db); dns_zone_catz_disable_db(zone, load->db); }