From f2ab5803fbd88ae613429a382f28e81841832d0d Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Mon, 7 Dec 2020 15:31:34 -0600 Subject: [PATCH] dns: initialize log flags as an unsigned long long On 64 bit all 64 bits were being initialized, but on 32 bit only 32 bits were as it was being initialized as a long. Redmine issue: https://redmine.openinfosecfoundation.org/issues/4206 --- src/output-json-dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output-json-dns.c b/src/output-json-dns.c index 3ce11613e0..cf9043bc05 100644 --- a/src/output-json-dns.c +++ b/src/output-json-dns.c @@ -579,7 +579,7 @@ static DnsVersion JsonDnsParseVersion(ConfNode *conf) static void JsonDnsLogInitFilters(LogDnsFileCtx *dnslog_ctx, ConfNode *conf) { - dnslog_ctx->flags = ~0UL; + dnslog_ctx->flags = ~0ULL; if (conf) { if (dnslog_ctx->version == DNS_VERSION_1) {