]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
dns: initialize log flags as an unsigned long long 5819/head
authorJason Ish <jason.ish@oisf.net>
Mon, 7 Dec 2020 21:31:34 +0000 (15:31 -0600)
committerShivani Bhardwaj <shivanib134@gmail.com>
Fri, 5 Feb 2021 11:10:06 +0000 (16:40 +0530)
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

(cherry picked from commit f2ab5803fbd88ae613429a382f28e81841832d0d)

src/output-json-dns.c

index 3ce11613e05bf8ba4ee8ffb37b5cc3fdf8edcd7d..cf9043bc05ce26af61e949ce59cf446aab8d003b 100644 (file)
@@ -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) {