Fix for invalid DNS reponse detection

This commit is contained in:
Luca
2016-05-12 13:10:23 +02:00
parent 90843a4228
commit 69bdc44441
+1 -1
View File
@@ -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;