mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-25 02:42:33 -05:00
properly initialise resarg->lock
This commit is contained in:
parent
48c703e3d6
commit
eadb829dac
1 changed files with 2 additions and 1 deletions
|
|
@ -1035,7 +1035,6 @@ dns_client_resolve(dns_client_t *client, const dns_name_t *name,
|
|||
|
||||
resarg = isc_mem_get(client->mctx, sizeof(*resarg));
|
||||
|
||||
isc_mutex_init(&resarg->lock);
|
||||
*resarg = (resarg_t){
|
||||
.actx = client->actx,
|
||||
.client = client,
|
||||
|
|
@ -1043,6 +1042,8 @@ dns_client_resolve(dns_client_t *client, const dns_name_t *name,
|
|||
.namelist = namelist,
|
||||
};
|
||||
|
||||
isc_mutex_init(&resarg->lock);
|
||||
|
||||
result = dns_client_startresolve(client, name, rdclass, type, options,
|
||||
client->task, resolve_done, resarg,
|
||||
&resarg->trans);
|
||||
|
|
|
|||
Loading…
Reference in a new issue