aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/tls.c
diff options
context:
space:
mode:
authorLuca Deri <lucaderi@users.noreply.github.com>2020-03-31 17:51:20 +0200
committerGitHub <noreply@github.com>2020-03-31 17:51:20 +0200
commit56ca71bda9870e78ba0ee70fe226c4a4fcc36a04 (patch)
treea523d39c9ee5faa35067fc8a4122ba2b6f51883c /src/lib/protocols/tls.c
parent17d531e3db61326f286c7d0d543f4ea5b00bc796 (diff)
parent498571354d2c22c192bb80bc79058b70d455b363 (diff)
Merge pull request #863 from IvanNardi/memory-errors
Memory errors
Diffstat (limited to 'src/lib/protocols/tls.c')
-rw-r--r--src/lib/protocols/tls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/tls.c b/src/lib/protocols/tls.c
index d32584b05..77d69a6fe 100644
--- a/src/lib/protocols/tls.c
+++ b/src/lib/protocols/tls.c
@@ -734,7 +734,7 @@ int processClientServerHello(struct ndpi_detection_module_struct *ndpi_struct,
if(total_len > 4) {
u_int16_t base_offset = packet->tcp ? 38 : 46;
u_int16_t version_offset = packet->tcp ? 4 : 12;
- u_int16_t offset = 38, extension_len, j;
+ u_int16_t offset = packet->tcp ? 38 : 46, extension_len, j;
u_int8_t session_id_len = 0;
if (base_offset < total_len)
session_id_len = packet->payload[base_offset];