aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2023-12-22 21:10:03 +0100
committerLuca Deri <deri@ntop.org>2023-12-22 21:10:03 +0100
commit53b9ae23e8fb82425a9c4f696d5e49617eab5a6b (patch)
treea40a22e63e30379008487c04f5442d2f2c2bf24a /src
parentcbea1b2203647e3ee819d8d1d93411e8a8f9e116 (diff)
Warning fix
Diffstat (limited to 'src')
-rw-r--r--src/lib/protocols/tls.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/protocols/tls.c b/src/lib/protocols/tls.c
index 8949e22e5..71f6eb0be 100644
--- a/src/lib/protocols/tls.c
+++ b/src/lib/protocols/tls.c
@@ -1738,10 +1738,8 @@ static void ndpi_compute_ja4(struct ndpi_detection_module_struct *ndpi_struct,
printf("[JA4] %s [len: %lu]\n", ja_str, strlen(ja_str));
#endif
- snprintf(flow->protos.tls_quic.ja4_client,
- sizeof(flow->protos.tls_quic.ja4_client),
- "%s", ja_str);
-
+ strncpy(flow->protos.tls_quic.ja4_client, ja_str, 36);
+ flow->protos.tls_quic.ja4_client[36] = 0;
}
/* **************************************** */