From: Mark Andrews Date: Thu, 16 Jun 2022 06:55:06 +0000 (+1000) Subject: Add entries to the synth-from-dnssec namespace tree for zones X-Git-Tag: v9.19.3~10^2~6 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=f716bd68d4c17fc38766e5b4ba3cfbc5b837bfde;p=thirdparty%2Fbind9.git Add entries to the synth-from-dnssec namespace tree for zones When a zone is attached or detached from the view (zone->view is updated) update the synth-from-dnssec namespace tree. --- diff --git a/lib/dns/zone.c b/lib/dns/zone.c index 67e9e526b96..e9495436e62 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -1635,9 +1635,11 @@ dns_zone_setview_helper(dns_zone_t *zone, dns_view_t *view) { INSIST(zone != zone->raw); if (zone->view != NULL) { + dns_view_sfd_del(zone->view, &zone->origin); dns_view_weakdetach(&zone->view); } dns_view_weakattach(view, &zone->view); + dns_view_sfd_add(view, &zone->origin); if (zone->strviewname != NULL) { isc_mem_free(zone->mctx, zone->strviewname);