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:
+4
-6
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user