diff options
author | Luca <deri@ntop.org> | 2016-05-12 13:10:23 +0200 |
---|---|---|
committer | Luca <deri@ntop.org> | 2016-05-12 13:10:23 +0200 |
commit | 69bdc444415cdbb460088e76d40ac86ca947aa31 (patch) | |
tree | 7b2a562e749e626ed34c0c8a7e5bbc72ffa5ccd0 /src | |
parent | 90843a4228e8929b74582cf1d025e7edbc067de8 (diff) |
Fix for invalid DNS reponse detection
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/protocols/dns.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |