mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +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)
|
||||
goto out;
|
||||
|
||||
rootdb = NULL;
|
||||
result = dns_rootns_create(mctx, &rootdb);
|
||||
if (result != ISC_R_SUCCESS)
|
||||
goto out;
|
||||
dns_view_sethints(view, rootdb);
|
||||
dns_db_detach(&rootdb);
|
||||
|
||||
dns_view_freeze(view);
|
||||
|
||||
dns_db_detach(&rootdb);
|
||||
|
||||
return (ISC_R_SUCCESS);
|
||||
|
||||
@ -107,8 +108,6 @@ out:
|
||||
if (view != NULL)
|
||||
dns_view_detach(&view);
|
||||
|
||||
dns_db_detach(&rootdb);
|
||||
|
||||
return (result);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user