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:
Evan Hunt
2021-05-14 02:35:12 -07:00
committed by Ondřej Surý
parent 7cbfbc8faa
commit 62d06a4987

View File

@@ -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,