aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_main.c
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2022-12-10 18:32:25 +0100
committerGitHub <noreply@github.com>2022-12-10 18:32:25 +0100
commit8c7071e040865b3b70b98ff8d8ad18c41f3fb74c (patch)
treeb52a3e84e4997d53049226611584e820767bb5b6 /src/lib/ndpi_main.c
parent79931b2ec7dffc88df4cdd6855d7b1ec95cca20f (diff)
DTLS: handle (certificate) fragments (#1811)
Keep using the existing function to handle reassembling buffer: rename it from `ndpi_search_tls_tcp_memory` to `ndpi_search_tls_memory` and make it "transport" agnostic
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r--src/lib/ndpi_main.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index 7880aeae3..a3c017930 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -5092,12 +5092,10 @@ void ndpi_free_flow_data(struct ndpi_flow_struct* flow) {
ndpi_free(flow->protos.tls_quic.encrypted_sni.esni);
}
- if(flow->l4_proto == IPPROTO_TCP) {
- if(flow->l4.tcp.tls.message[0].buffer)
- ndpi_free(flow->l4.tcp.tls.message[0].buffer);
- if(flow->l4.tcp.tls.message[1].buffer)
- ndpi_free(flow->l4.tcp.tls.message[1].buffer);
- }
+ if(flow->tls_quic.message[0].buffer)
+ ndpi_free(flow->tls_quic.message[0].buffer);
+ if(flow->tls_quic.message[1].buffer)
+ ndpi_free(flow->tls_quic.message[1].buffer);
if(flow->l4_proto == IPPROTO_UDP) {
if(flow->l4.udp.quic_reasm_buf)