Silenced TLS warning

This commit is contained in:
Luca Deri
2019-10-21 15:33:20 +02:00
parent b2832cee8e
commit d023f9bf2d
+4 -1
View File
@@ -820,8 +820,11 @@ int getSSCertificateFingerprint(struct ndpi_detection_module_struct *ndpi_struct
if(flow->l4.tcp.tls_srv_cert_fingerprint_ctx == NULL) if(flow->l4.tcp.tls_srv_cert_fingerprint_ctx == NULL)
flow->l4.tcp.tls_srv_cert_fingerprint_ctx = (void*)ndpi_malloc(sizeof(SHA1_CTX)); flow->l4.tcp.tls_srv_cert_fingerprint_ctx = (void*)ndpi_malloc(sizeof(SHA1_CTX));
else else {
#ifdef DEBUG_TLS
printf("[TLS] Internal error: double allocation\n:"); printf("[TLS] Internal error: double allocation\n:");
#endif
}
if(flow->l4.tcp.tls_srv_cert_fingerprint_ctx) { if(flow->l4.tcp.tls_srv_cert_fingerprint_ctx) {
SHA1Init(flow->l4.tcp.tls_srv_cert_fingerprint_ctx); SHA1Init(flow->l4.tcp.tls_srv_cert_fingerprint_ctx);