mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 18:02:05 -04:00
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.
This commit is contained in:
parent
228dadb026
commit
f716bd68d4
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue