]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
dns: fix log filtering
authorJason Ish <ish@unx.ca>
Tue, 9 May 2017 23:40:56 +0000 (17:40 -0600)
committerVictor Julien <victor@inliniac.net>
Tue, 16 May 2017 16:56:36 +0000 (18:56 +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 dc78a996ccde24e408113849cdc73a6ae06e13d2..a438fb0164008cd63d2e40907c12d2ac204b5ecc 100644 (file)
@@ -179,7 +179,8 @@ typedef enum {
     DNS_RRTYPE_TSIG,
     DNS_RRTYPE_MAILA,
     DNS_RRTYPE_ANY,
-    DNS_RRTYPE_URI
+    DNS_RRTYPE_URI,
+    DNS_RRTYPE_MAX,
 } DnsRRTypes;
 
 static struct {
@@ -754,7 +755,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)