diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2020-08-13 10:32:31 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2020-08-13 10:32:31 +0200 |
commit | aa856735c0a5a78b76e98f054d5324e3fe74a7a7 (patch) | |
tree | 8a525cb3cf3a671debac59ac47a027becf28aea9 /example/ndpiSimpleIntegration.c | |
parent | 4ead6d6594e64716b58603537c779f6c9be44f37 (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.c | 2 |
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) { /* |