aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_main.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2021-01-21 19:06:05 +0100
committerLuca Deri <deri@ntop.org>2021-01-21 19:06:05 +0100
commit15295ef4c520f1e74163d15119e217ee799a24aa (patch)
tree96c41348cd8b365c433900eb852fa62621441c8b /src/lib/ndpi_main.c
parent399755607d5bf5b68e62f324a8614351437051c1 (diff)
Reworked TLS fingerprint calcolation
Modified TLS memory free
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r--src/lib/ndpi_main.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index 45caa56ce..e4616b4cb 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -6341,19 +6341,14 @@ void ndpi_free_flow_data(struct ndpi_flow_struct *flow) {
if(flow->protos.stun_ssl.ssl.tls_supported_versions)
ndpi_free(flow->protos.stun_ssl.ssl.tls_supported_versions);
- if(!is_quic) {
- if(flow->protos.stun_ssl.ssl.issuerDN)
- ndpi_free(flow->protos.stun_ssl.ssl.issuerDN);
-
- if(flow->protos.stun_ssl.ssl.subjectDN)
- ndpi_free(flow->protos.stun_ssl.ssl.subjectDN);
-
- if(flow->l4.tcp.tls.srv_cert_fingerprint_ctx)
- ndpi_free(flow->l4.tcp.tls.srv_cert_fingerprint_ctx);
-
- if(flow->protos.stun_ssl.ssl.encrypted_sni.esni)
- ndpi_free(flow->protos.stun_ssl.ssl.encrypted_sni.esni);
- }
+ if(flow->protos.stun_ssl.ssl.issuerDN)
+ ndpi_free(flow->protos.stun_ssl.ssl.issuerDN);
+
+ if(flow->protos.stun_ssl.ssl.subjectDN)
+ ndpi_free(flow->protos.stun_ssl.ssl.subjectDN);
+
+ if(flow->protos.stun_ssl.ssl.encrypted_sni.esni)
+ ndpi_free(flow->protos.stun_ssl.ssl.encrypted_sni.esni);
}
if(flow->l4_proto == IPPROTO_TCP) {