diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2022-07-22 12:19:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-22 12:19:21 +0200 |
commit | 52005e88ed9730c605db23573f63ba6a17cd45e5 (patch) | |
tree | b170a3955ccc6cac9d25e4011d6ec49c25133222 /src/lib/ndpi_main.c | |
parent | ce6f11840d1ae7a9f1e1537d004c4814842fa305 (diff) |
TLS: improve reassembler (#1669)
* TLS: cosmetic changes
* TLS: improve reassembler
We might need to contemporary re-order messages from both directions:
use one buffer per direction.
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r-- | src/lib/ndpi_main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 172149824..e98577406 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -4813,8 +4813,10 @@ void ndpi_free_flow_data(struct ndpi_flow_struct* flow) { } if(flow->l4_proto == IPPROTO_TCP) { - if(flow->l4.tcp.tls.message.buffer) - ndpi_free(flow->l4.tcp.tls.message.buffer); + 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->l4_proto == IPPROTO_UDP) { |