aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
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 =