diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2023-11-07 18:09:52 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2023-11-07 18:19:05 +0100 |
commit | cefc35acadfcca494193f70bc20ca202e90d403a (patch) | |
tree | e323193fd4b2082263e4f487a06cdce453f8b0aa | |
parent | 58a9e2d9679f268a64b9082dae70498147bb58a8 (diff) |
Fixed invalid unidirectional risk set even if packetsfix/missing-packet-counter-increase
from both directions were processed.
* It is necessary to call `ndpi_connection_tracking()`
if the flow was detected after the first packet.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rw-r--r-- | src/lib/ndpi_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 5cdaa9f2b..2f2ab3920 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -7781,6 +7781,8 @@ static ndpi_protocol ndpi_internal_detection_process_packet(struct ndpi_detectio if(ndpi_init_packet(ndpi_str, flow, current_time_ms, packet_data, packetlen, input_info) != 0) return(ret); + ndpi_connection_tracking(ndpi_str, flow); + goto ret_protocols; } |