aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2021-07-24 17:50:32 +0200
committerLuca Deri <deri@ntop.org>2021-07-24 17:50:32 +0200
commit51e48884429015b94d58d9e3240c0fb3ceb465f2 (patch)
tree10ed46614347ef18f38569e1f3ff90ed6ac05608 /example
parent526568fcd519ccef3216b563f79e77c7326e11b9 (diff)
Implemented ALPN automa for checking uncommon ALPNs
Diffstat (limited to 'example')
-rw-r--r--example/reader_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/reader_util.c b/example/reader_util.c
index f4f35da1a..bc7444f31 100644
--- a/example/reader_util.c
+++ b/example/reader_util.c
@@ -1472,8 +1472,8 @@ static struct ndpi_proto packet_processing(struct ndpi_workflow * workflow,
/* Copy packets entropy if num packets count == 10 */
ndpi_clear_entropy_stats(flow);
-
- if(!flow->has_human_readeable_strings) {
+
+ if((human_readeable_string_len != 0) && (!flow->has_human_readeable_strings)) {
u_int8_t skip = 0;
if((proto == IPPROTO_TCP)