Skip to content

Commit

Permalink
Silenced warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Oct 21, 2019
1 parent 6a38ede commit 2ce4223
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/lib/protocols/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,9 +820,12 @@ int getSSCertificateFingerprint(struct ndpi_detection_module_struct *ndpi_struct

if(flow->l4.tcp.tls_srv_cert_fingerprint_ctx == NULL)
flow->l4.tcp.tls_srv_cert_fingerprint_ctx = (void*)ndpi_malloc(sizeof(SHA1_CTX));
else
printf("[TLS] Internal error: double allocation\n:");

else {
#ifdef DEBUG_TLS
printf("[TLS] Internal error: double allocation\n");
#endif
}

if(flow->l4.tcp.tls_srv_cert_fingerprint_ctx) {
SHA1Init(flow->l4.tcp.tls_srv_cert_fingerprint_ctx);
flow->l4.tcp.tls_srv_cert_fingerprint_found = 1;
Expand Down

0 comments on commit 2ce4223

Please sign in to comment.