From b36690e750ea51860e642c1febdfadff84d64786 Mon Sep 17 00:00:00 2001 From: Michal Nowak Date: Mon, 22 Feb 2021 13:50:11 +0100 Subject: [PATCH] Initialize checknames field in dns_view_create() The 'checknames' field wasn't initialized in dns_view_create(), but it should otherwise AddressSanitizer identifies the following runtime error in query_test.c. runtime error: load of value 190, which is not a valid value for type '_Bool' (cherry picked from commit 0c6fa16477075ef0bcac46c9952ac771740e56d7) --- lib/dns/view.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dns/view.c b/lib/dns/view.c index 035dedd1a3..1910d58770 100644 --- a/lib/dns/view.c +++ b/lib/dns/view.c @@ -190,6 +190,7 @@ dns_view_create(isc_mem_t *mctx, dns_rdataclass_t rdclass, const char *name, view->transfer_format = dns_one_answer; view->cacheacl = NULL; view->cacheonacl = NULL; + view->checknames = false; view->queryacl = NULL; view->queryonacl = NULL; view->recursionacl = NULL;