aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMrTiz9 <tiziano.marra@pm.me>2020-02-01 13:47:42 +0100
committerMrTiz9 <tiziano.marra@pm.me>2020-02-01 13:47:42 +0100
commitb3138d5e3e44089bc22bdc58ea3c422ce67409f2 (patch)
tree0816a186be4ba6f29aca3c9566eba0eeef493ba4 /src
parent5c8c2d843afc38f6246c678ea41e81b1a88bcf17 (diff)
parent39b1ad3087471cc6f9e11ea52b903060e0189e72 (diff)
Merge branch 'dev' of https://github.com/ntop/nDPI into dev-unstable
Diffstat (limited to 'src')
-rw-r--r--src/lib/ndpi_community_id.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ndpi_community_id.c b/src/lib/ndpi_community_id.c
index 7b55fc009..30519b59e 100644
--- a/src/lib/ndpi_community_id.c
+++ b/src/lib/ndpi_community_id.c
@@ -173,7 +173,7 @@ static int ndpi_community_id_peer_v6_is_less_than(struct ndpi_in6_addr *ip1, str
/* **************************************************** */
static void ndpi_community_id_sha1_hash(const uint8_t *message, size_t len, u_char *hash /* 20-bytes */) {
- SHA1_CTX ctx = { 0 };
+ SHA1_CTX ctx;
SHA1Init(&ctx);
SHA1Update(&ctx, message, len);
SHA1Final(hash, &ctx);
@@ -217,7 +217,7 @@ static int ndpi_community_id_finalize_and_compute_hash(u_int8_t *comm_buf, u_int
if (community_id == NULL)
return -1;
-#if 1 /* Debug Info */
+#if 0 /* Debug Info */
printf("Hex output: ");
for(int i = 0; i < off; i++)
printf("%.2x ", comm_buf[i]);