From: Michal Nowak Date: Mon, 22 Feb 2021 12:50:11 +0000 (+0100) Subject: Initialize checknames field in dns_view_create() X-Git-Tag: v9.17.11~29^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0c6fa16477075ef0bcac46c9952ac771740e56d7;p=thirdparty%2Fbind9.git 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' --- diff --git a/lib/dns/view.c b/lib/dns/view.c index ae662f850e6..2c5662473ef 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;