From aa856735c0a5a78b76e98f054d5324e3fe74a7a7 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Thu, 13 Aug 2020 10:32:31 +0200 Subject: 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 --- example/ndpiSimpleIntegration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example/ndpiSimpleIntegration.c') 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) { /* -- cgit v1.2.3