mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 21:52:06 -04:00
fix bug in previous change
This commit is contained in:
parent
cab7fe2cca
commit
c6102b0b77
1 changed files with 2 additions and 3 deletions
|
|
@ -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…
Reference in a new issue