Fix for invalid DNS reponse detection
This commit is contained in:
@@ -75,7 +75,7 @@ void ndpi_search_dns(struct ndpi_detection_module_struct *ndpi_struct, struct nd
|
|||||||
if((dns_header.flags & FLAGS_MASK) == 0x0000)
|
if((dns_header.flags & FLAGS_MASK) == 0x0000)
|
||||||
is_query = 1;
|
is_query = 1;
|
||||||
/* 0x8000 RESPONSE */
|
/* 0x8000 RESPONSE */
|
||||||
else if((dns_header.flags & FLAGS_MASK) != 0x8000)
|
else if((dns_header.flags & FLAGS_MASK) == 0x8000)
|
||||||
is_query = 0;
|
is_query = 0;
|
||||||
else
|
else
|
||||||
invalid = 1;
|
invalid = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user