From cefc35acadfcca494193f70bc20ca202e90d403a Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Tue, 7 Nov 2023 18:09:52 +0100 Subject: Fixed invalid unidirectional risk set even if packets 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 --- src/lib/ndpi_main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib/ndpi_main.c') 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; } -- cgit v1.2.3