From: Matthijs Mekking Date: Wed, 1 Apr 2026 15:06:19 +0000 (+0200) Subject: Also remove modded catalog zones from NZD X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ccb01b15e5494d8d52bfec60af35cc7993cb465c;p=thirdparty%2Fbind9.git Also remove modded catalog zones from NZD In the rare case where a catalog zone member is being modified with 'rndc modzone', also mark the zone as modded, so when the zone is deleted again with 'rndc delzone', the configuration is also removed from the NZD. --- diff --git a/bin/named/server.c b/bin/named/server.c index a8af9ff1616..778486bfe5d 100644 --- a/bin/named/server.c +++ b/bin/named/server.c @@ -12611,7 +12611,6 @@ static void rmzone(void *arg) { ns_dzctx_t *dz = (ns_dzctx_t *)arg; dns_zone_t *zone = NULL, *raw = NULL, *mayberaw = NULL; - dns_catz_zone_t *catz = NULL; char zonename[DNS_NAME_FORMATSIZE]; dns_view_t *view = NULL; dns_db_t *dbp = NULL; @@ -12637,11 +12636,10 @@ rmzone(void *arg) { */ added = dns_zone_getadded(zone); modded = dns_zone_getmodded(zone); - catz = dns_zone_get_parentcatz(zone); LOCK(&view->newzone.lock); - if ((added || modded) && catz == NULL) { + if (added || modded) { /* Make sure we can open the NZD database */ result = nzd_open(view, 0, &txn, &dbi); if (result != ISC_R_SUCCESS) {