mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 10:29:59 -04:00
Merge branch 'each-set-magic-last' into 'master'
set the magic number at the end of dns_dt_create() See merge request isc-projects/bind9!1383
This commit is contained in:
commit
7311ebe9d3
1 changed files with 3 additions and 2 deletions
|
|
@ -211,8 +211,6 @@ dns_dt_create(isc_mem_t *mctx, dns_dtmode_t mode, const char *path,
|
|||
env = isc_mem_get(mctx, sizeof(dns_dtenv_t));
|
||||
|
||||
memset(env, 0, sizeof(dns_dtenv_t));
|
||||
env->magic = DTENV_MAGIC;
|
||||
isc_mem_attach(mctx, &env->mctx);
|
||||
env->reopen_task = reopen_task;
|
||||
isc_mutex_init(&env->reopen_lock);
|
||||
env->reopen_queued = false;
|
||||
|
|
@ -267,6 +265,9 @@ dns_dt_create(isc_mem_t *mctx, dns_dtmode_t mode, const char *path,
|
|||
env->fopt = *foptp;
|
||||
*foptp = NULL;
|
||||
|
||||
isc_mem_attach(mctx, &env->mctx);
|
||||
|
||||
env->magic = DTENV_MAGIC;
|
||||
*envp = env;
|
||||
|
||||
cleanup:
|
||||
|
|
|
|||
Loading…
Reference in a new issue