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
This commit is contained in:
Ivan Nardi
2022-12-10 18:32:25 +01:00
committed by GitHub
parent 79931b2ec7
commit 8c7071e040
6 changed files with 118 additions and 61 deletions
+4 -6
View File
@@ -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)