Verified Commit efe11d43 authored by Michal Nowak's avatar Michal Nowak
Browse files

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'
parent 63c7300f
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment