From 840ba2ec9bcbd9b5fe07405d8d69262b279e99d6 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Tue, 9 May 2017 17:40:56 -0600 Subject: [PATCH] dns: fix log filtering Previously only a subset of the records could be selected in custom. Now allow any to be selected. --- src/output-json-dns.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/output-json-dns.c b/src/output-json-dns.c index 96689777ec..c8fb816e66 100644 --- a/src/output-json-dns.c +++ b/src/output-json-dns.c @@ -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) -- 2.47.2