]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
dns: initialize log flags as an unsigned long long
authorJason Ish <jason.ish@oisf.net>
Mon, 7 Dec 2020 21:31:34 +0000 (15:31 -0600)
committerJeff Lucovsky <jeff@lucovsky.org>
Mon, 15 Feb 2021 13:49:52 +0000 (08:49 -0500)
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 7e915d4f903159f82d5a8360e90232f203e2e745..261fc8a55fad1b28a33db5410661ced42025b9b5 100644 (file)
@@ -545,7 +545,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) {