aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiSimpleIntegration.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-08-13 10:32:31 +0200
committerToni Uhlig <matzeton@googlemail.com>2020-08-13 10:32:31 +0200
commitaa856735c0a5a78b76e98f054d5324e3fe74a7a7 (patch)
tree8a525cb3cf3a671debac59ac47a027becf28aea9 /example/ndpiSimpleIntegration.c
parent4ead6d6594e64716b58603537c779f6c9be44f37 (diff)
num_extra_packets_checked check can be 0 for some protocols and therefor requires lesser-or-equal condition for max_extra_packets_to_check
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'example/ndpiSimpleIntegration.c')
-rw-r--r--example/ndpiSimpleIntegration.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/ndpiSimpleIntegration.c b/example/ndpiSimpleIntegration.c
index f30e7cf99..bf16dbd95 100644
--- a/example/ndpiSimpleIntegration.c
+++ b/example/ndpiSimpleIntegration.c
@@ -847,7 +847,7 @@ static void ndpi_process_packet(uint8_t * const args,
}
}
- if (flow_to_process->ndpi_flow->num_extra_packets_checked <
+ if (flow_to_process->ndpi_flow->num_extra_packets_checked <=
flow_to_process->ndpi_flow->max_extra_packets_to_check)
{
/*