From 69bdc444415cdbb460088e76d40ac86ca947aa31 Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 12 May 2016 13:10:23 +0200 Subject: Fix for invalid DNS reponse detection --- src/lib/protocols/dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/protocols/dns.c b/src/lib/protocols/dns.c index c54c62f18..f8b50f733 100644 --- a/src/lib/protocols/dns.c +++ b/src/lib/protocols/dns.c @@ -75,7 +75,7 @@ void ndpi_search_dns(struct ndpi_detection_module_struct *ndpi_struct, struct nd if((dns_header.flags & FLAGS_MASK) == 0x0000) is_query = 1; /* 0x8000 RESPONSE */ - else if((dns_header.flags & FLAGS_MASK) != 0x8000) + else if((dns_header.flags & FLAGS_MASK) == 0x8000) is_query = 0; else invalid = 1; -- cgit v1.2.3