From: Michal Nowak Date: Thu, 18 Feb 2021 13:49:23 +0000 (+0100) Subject: Initialize checknames field in query_test.c X-Git-Tag: v9.17.11~29^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=efe11d43838e2f399aef16b167b343f312f0ad73;p=thirdparty%2Fbind9.git Initialize checknames field in query_test.c 'checknames' field of struct dns_view is not initialized by dns_view_create(). ASAN identified this as runtime error: runtime error: load of value 190, which is not a valid value for type '_Bool' --- diff --git a/lib/ns/tests/query_test.c b/lib/ns/tests/query_test.c index 6630ee33697..6558d3c9818 100644 --- a/lib/ns/tests/query_test.c +++ b/lib/ns/tests/query_test.c @@ -1412,6 +1412,7 @@ run_hookasync_e2e_test(const ns__query_hookasync_e2e_test_params_t *test) { qctx->client->sendcb = send_noop; /* Load a zone. it should have ns.foo/A */ + qctx->client->view->checknames = true; result = ns_test_serve_zone("foo", "testdata/query/foo.db", qctx->client->view); INSIST(result == ISC_R_SUCCESS);