mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
fix bug in previous change
This commit is contained in:
parent
cab7fe2cca
commit
c6102b0b77
@ -92,14 +92,15 @@ create_view(isc_mem_t *mctx)
|
|||||||
if (result != ISC_R_SUCCESS)
|
if (result != ISC_R_SUCCESS)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
rootdb = NULL;
|
||||||
result = dns_rootns_create(mctx, &rootdb);
|
result = dns_rootns_create(mctx, &rootdb);
|
||||||
if (result != ISC_R_SUCCESS)
|
if (result != ISC_R_SUCCESS)
|
||||||
goto out;
|
goto out;
|
||||||
dns_view_sethints(view, rootdb);
|
dns_view_sethints(view, rootdb);
|
||||||
|
dns_db_detach(&rootdb);
|
||||||
|
|
||||||
dns_view_freeze(view);
|
dns_view_freeze(view);
|
||||||
|
|
||||||
dns_db_detach(&rootdb);
|
|
||||||
|
|
||||||
return (ISC_R_SUCCESS);
|
return (ISC_R_SUCCESS);
|
||||||
|
|
||||||
@ -107,8 +108,6 @@ out:
|
|||||||
if (view != NULL)
|
if (view != NULL)
|
||||||
dns_view_detach(&view);
|
dns_view_detach(&view);
|
||||||
|
|
||||||
dns_db_detach(&rootdb);
|
|
||||||
|
|
||||||
return (result);
|
return (result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user