Warning fix

This commit is contained in:
Luca Deri
2023-12-22 21:10:03 +01:00
parent cbea1b2203
commit 53b9ae23e8
+2 -4
View File
@@ -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;
}
/* **************************************** */