aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiSimpleIntegration.c
diff options
context:
space:
mode:
authorLuca Deri <lucaderi@users.noreply.github.com>2020-08-13 10:41:25 +0200
committerGitHub <noreply@github.com>2020-08-13 10:41:25 +0200
commit46ec91ca4bc1f8ea4d6f81a7ec31e721a4def871 (patch)
treeec54d73131b50e239582ed38642295bdd3736595 /example/ndpiSimpleIntegration.c
parent8090765a648788bce7e923dde78ed242a59c547f (diff)
parentaa856735c0a5a78b76e98f054d5324e3fe74a7a7 (diff)
Merge pull request #976 from lnslbrty/fix/ndpi_simpleint_builderr
Fix/ndpi simpleint builderr
Diffstat (limited to 'example/ndpiSimpleIntegration.c')
-rw-r--r--example/ndpiSimpleIntegration.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/example/ndpiSimpleIntegration.c b/example/ndpiSimpleIntegration.c
index d5bd117d8..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)
{
/*
@@ -873,7 +873,8 @@ static void ndpi_process_packet(uint8_t * const args,
workflow->packets_captured,
reader_thread->array_index,
flow_to_process->flow_id,
- ndpi_ssl_version2str(flow_to_process->ndpi_flow->protos.stun_ssl.ssl.ssl_version,
+ ndpi_ssl_version2str(flow_to_process->ndpi_flow,
+ flow_to_process->ndpi_flow->protos.stun_ssl.ssl.ssl_version,
&unknown_tls_version),
flow_to_process->ndpi_flow->protos.stun_ssl.ssl.client_requested_server_name,
(flow_to_process->ndpi_flow->protos.stun_ssl.ssl.alpn != NULL ?
@@ -889,7 +890,8 @@ static void ndpi_process_packet(uint8_t * const args,
workflow->packets_captured,
reader_thread->array_index,
flow_to_process->flow_id,
- ndpi_ssl_version2str(flow_to_process->ndpi_flow->protos.stun_ssl.ssl.ssl_version,
+ ndpi_ssl_version2str(flow_to_process->ndpi_flow,
+ flow_to_process->ndpi_flow->protos.stun_ssl.ssl.ssl_version,
&unknown_tls_version),
flow_to_process->ndpi_flow->protos.stun_ssl.ssl.server_names_len,
flow_to_process->ndpi_flow->protos.stun_ssl.ssl.server_names,