]> 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>
Tue, 5 Jul 2022 02:29:01 +0000 (12:29 +1000)
When a zone is attached or detached from the view (zone->view is
updated) update the synth-from-dnssec namespace tree.

lib/dns/zone.c

index 67e9e526b96814615eef75bd0a191123721cbeb2..e9495436e625a2e5f1304d8eae361632b74c53a3 100644 (file)
@@ -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);