]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
dns: fix log filtering 2719/head
authorJason Ish <ish@unx.ca>
Tue, 9 May 2017 23:40:56 +0000 (17:40 -0600)
committerVictor Julien <victor@inliniac.net>
Wed, 24 May 2017 13:43:46 +0000 (15:43 +0200)
Previously only a subset of the records could be selected
in custom. Now allow any to be selected.

src/output-json-dns.c

index 96689777ec246122edb65a622acb5eb2b39fbe10..c8fb816e66deccfcb976c1db525ec34cb7e57a00 100644 (file)
@@ -178,7 +178,8 @@ typedef enum {
     DNS_RRTYPE_TSIG,
     DNS_RRTYPE_MAILA,
     DNS_RRTYPE_ANY,
-    DNS_RRTYPE_URI
+    DNS_RRTYPE_URI,
+    DNS_RRTYPE_MAX,
 } DnsRRTypes;
 
 static struct {
@@ -753,7 +754,7 @@ static void JsonDnsLogInitFilters(LogDnsFileCtx *dnslog_ctx, ConfNode *conf)
                 if (field != NULL)
                 {
                     DnsRRTypes f;
-                    for (f = DNS_RRTYPE_A; f < DNS_RRTYPE_TXT; f++)
+                    for (f = DNS_RRTYPE_A; f < DNS_RRTYPE_MAX; f++)
                     {
                         if (strcasecmp(dns_rrtype_fields[f].config_rrtype,
                                        field->val) == 0)