]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add entries to the synth-from-dnssec namespace tree for zones
authorMark Andrews <marka@isc.org>
Thu, 16 Jun 2022 06:55:06 +0000 (16:55 +1000)
committerMark Andrews <marka@isc.org>
Wed, 6 Jul 2022 21:47:45 +0000 (07:47 +1000)
When a zone is attached or detached from the view (zone->view is
updated) update the synth-from-dnssec namespace tree.

(cherry picked from commit f716bd68d4c17fc38766e5b4ba3cfbc5b837bfde)

lib/dns/zone.c

index b06d37b08717222848551b2439636982e46b5251..03b3e26d78582077fbe1ceab1e5b03d27911b9b9 100644 (file)
@@ -1623,9 +1623,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);