diff options
-rw-r--r-- | .travis.yml | 1 | ||||
-rw-r--r-- | example/ndpiSimpleIntegration.c | 8 |
2 files changed, 6 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 2c359b356..c583c3a0b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -170,6 +170,7 @@ before_script: script: - if [ -n "$QA_FUZZ" ]; then ./configure --enable-fuzztargets ; else ./configure ; fi - make + - make -C example ndpiSimpleIntegration #after_script: - cd tests 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, |