diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2022-07-29 12:07:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-29 12:07:14 +0200 |
commit | 95e16872fadfc98256fdcf729f267237c727e4c3 (patch) | |
tree | 226da4705b52e2b8acdb43f802aab62fb07507f1 /src/lib/protocols/dns.c | |
parent | 172e698bb8239d0060d9d494adfba928507f95b2 (diff) |
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...
Diffstat (limited to 'src/lib/protocols/dns.c')
-rw-r--r-- | src/lib/protocols/dns.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |