mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 03:32:06 -04:00
initialize state object in test-async driver
the hooks system test was failing due to a block of memory not having been zeroed after allocation.
This commit is contained in:
parent
7cbfbc8faa
commit
62d06a4987
1 changed files with 1 additions and 3 deletions
|
|
@ -226,9 +226,7 @@ client_state_create(const query_ctx_t *qctx, async_instance_t *inst) {
|
|||
isc_result_t result;
|
||||
|
||||
state = isc_mem_get(inst->mctx, sizeof(*state));
|
||||
if (state == NULL) {
|
||||
return;
|
||||
}
|
||||
*state = (state_t){ .async = false };
|
||||
|
||||
LOCK(&inst->hlock);
|
||||
result = isc_ht_add(inst->ht, (const unsigned char *)&qctx->client,
|
||||
|
|
|
|||
Loading…
Reference in a new issue