aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-06-30 21:23:10 +0200
committerToni Uhlig <matzeton@googlemail.com>2020-06-30 21:23:10 +0200
commit4ca38c90cfe529e9fdd6f843680820074a869149 (patch)
tree15431349e0daf8502ee771fad1083bd713753ff9 /main.c
parentaa77fd75f90a2d0decb4b98ba7fc720c28b3d29c (diff)
do not guess protocol if detection successful and completed
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
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 =