aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2023-11-07 18:09:52 +0100
committerToni Uhlig <matzeton@googlemail.com>2023-11-07 18:19:05 +0100
commitcefc35acadfcca494193f70bc20ca202e90d403a (patch)
treee323193fd4b2082263e4f487a06cdce453f8b0aa
parent58a9e2d9679f268a64b9082dae70498147bb58a8 (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.c2
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;
}