mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -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.
(cherry picked from commit f716bd68d4)
This commit is contained in:
parent
4d9287dca5
commit
107c3a452a
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue