aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/tls.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2020-06-22 14:30:26 +0200
committerLuca Deri <deri@ntop.org>2020-06-22 14:30:26 +0200
commitd9af1562f00d2b9ac9fe5f4e745a84164656fea1 (patch)
tree3080569b67e19d10d34420436cbd851800f6114e /src/lib/protocols/tls.c
parente29e14b7aa305b038be4c07b61bbc28dfff92cb0 (diff)
Fixes #906
Packet bins are not printed wehn empty
Diffstat (limited to 'src/lib/protocols/tls.c')
-rw-r--r--src/lib/protocols/tls.c3
1 files changed, 1 insertions, 2 deletions
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; i<extension_len-1;i++) {
u_int8_t s_group = packet->payload[s_offset+i];