From: Evan Hunt Date: Fri, 14 May 2021 09:35:12 +0000 (-0700) Subject: initialize state object in test-async driver X-Git-Tag: v9.17.17~40^2~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=62d06a4987e44c0004b4fd1fa16193d79692fdd0;p=thirdparty%2Fbind9.git 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. --- diff --git a/bin/tests/system/hooks/driver/test-async.c b/bin/tests/system/hooks/driver/test-async.c index 9ea950af461..f3deee2b837 100644 --- a/bin/tests/system/hooks/driver/test-async.c +++ b/bin/tests/system/hooks/driver/test-async.c @@ -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,