From 4ca38c90cfe529e9fdd6f843680820074a869149 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Tue, 30 Jun 2020 21:23:10 +0200 Subject: do not guess protocol if detection successful and completed Signed-off-by: Toni Uhlig --- main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index b389565be..685f90aee 100644 --- a/main.c +++ b/main.c @@ -950,7 +950,9 @@ static void ndpi_process_packet(uint8_t * const args, if (flow_to_process->ndpi_flow->num_processed_pkts == 0xFF) { return; - } else if (flow_to_process->ndpi_flow->num_processed_pkts == 0xFE) { + } else if (flow_to_process->detection_completed == 0 && + flow_to_process->ndpi_flow->num_processed_pkts == 0xFE) + { /* last chance to guess something, better then nothing */ uint8_t protocol_was_guessed = 0; flow_to_process->guessed_protocol = -- cgit v1.2.3