From 95e16872fadfc98256fdcf729f267237c727e4c3 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Fri, 29 Jul 2022 12:07:14 +0200 Subject: First step in simplify `ndpi_process_extra_packet()` (#1680) Move the prottocol specific logic into the proper dissector code, where it belongs. Next step: remove that list of protocols. Long goal: remove this function altogether... --- src/lib/protocols/dns.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lib/protocols/dns.c') diff --git a/src/lib/protocols/dns.c b/src/lib/protocols/dns.c index 5b214170a..4589af3a0 100644 --- a/src/lib/protocols/dns.c +++ b/src/lib/protocols/dns.c @@ -370,6 +370,9 @@ static int search_dns_again(struct ndpi_detection_module_struct *ndpi_struct, st /* possibly dissect the DNS reply */ ndpi_search_dns(ndpi_struct, flow); + if(flow->protos.dns.num_answers != 0) + return(0); + /* Possibly more processing */ return(1); } -- cgit v1.2.3