From d9af1562f00d2b9ac9fe5f4e745a84164656fea1 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Mon, 22 Jun 2020 14:30:26 +0200 Subject: Fixes #906 Packet bins are not printed wehn empty --- src/lib/protocols/tls.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/protocols/tls.c b/src/lib/protocols/tls.c index eac9e0f77..b2cf1f23c 100644 --- a/src/lib/protocols/tls.c +++ b/src/lib/protocols/tls.c @@ -29,7 +29,6 @@ #include "ndpi_md5.h" #include "ndpi_sha1.h" - extern char *strptime(const char *s, const char *format, struct tm *tm); extern int processClientServerHello(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow); @@ -1165,7 +1164,7 @@ int processClientServerHello(struct ndpi_detection_module_struct *ndpi_struct, #ifdef DEBUG_TLS printf("Client SSL [EllipticCurveFormat: len=%u]\n", extension_len); #endif - if((s_offset+extension_len) < total_len) { + if((s_offset+extension_len-1) <= total_len) { for(i=0; ipayload[s_offset+i]; -- cgit v1.2.3