diff options
author | Luca Deri <deri@ntop.org> | 2021-02-03 23:36:11 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2021-02-03 23:36:11 +0100 |
commit | 6c366d73e27ab2097a197cd6d9870c1ca2457cc8 (patch) | |
tree | c31510ba47d9f00374bf352d4e475aa4109f1f95 /src | |
parent | 6289413fea1e66230f195e36e3c38082c1e00a93 (diff) |
Fixed leak with DTLS
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/ndpi_main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 1e3170862..732c1b6ec 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -6467,7 +6467,10 @@ void ndpi_free_flow_data(struct ndpi_flow_struct *flow) { if(flow->kerberos_buf.pktbuf) ndpi_free(flow->kerberos_buf.pktbuf); - if(is_quic || flow_is_proto(flow, NDPI_PROTOCOL_TLS)) { + if(is_quic + || flow_is_proto(flow, NDPI_PROTOCOL_TLS) + || flow_is_proto(flow, NDPI_PROTOCOL_DTLS) + ) { if(flow->protos.tls_quic_stun.tls_quic.server_names) ndpi_free(flow->protos.tls_quic_stun.tls_quic.server_names); |