aboutsummaryrefslogtreecommitdiff
path: root/example/reader_util.c
diff options
context:
space:
mode:
authorLuca <deri@ntop.org>2024-05-22 18:04:33 +0200
committerLuca <deri@ntop.org>2024-05-22 18:04:33 +0200
commit44a290286b298a461b3a88a0bfdc4e0361a247f3 (patch)
tree8fb52896c1c62153b5953f20e86cde65ae6b0187 /example/reader_util.c
parent74d3843ebe0d181072acc6700e6c41595ce75f0d (diff)
More NDPI_PROBING_ATTEMPT changes
Diffstat (limited to 'example/reader_util.c')
-rw-r--r--example/reader_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/example/reader_util.c b/example/reader_util.c
index e0e09ac61..a6c472b3f 100644
--- a/example/reader_util.c
+++ b/example/reader_util.c
@@ -458,11 +458,11 @@ void ndpi_flow_info_freer(void *node) {
/* ***************************************************** */
static void ndpi_free_flow_tls_data(struct ndpi_flow_info *flow) {
-
if(flow->dhcp_fingerprint) {
ndpi_free(flow->dhcp_fingerprint);
flow->dhcp_fingerprint = NULL;
}
+
if(flow->dhcp_class_ident) {
ndpi_free(flow->dhcp_class_ident);
flow->dhcp_class_ident = NULL;
@@ -477,6 +477,7 @@ static void ndpi_free_flow_tls_data(struct ndpi_flow_info *flow) {
ndpi_free(flow->telnet.username);
flow->telnet.username = NULL;
}
+
if(flow->telnet.password) {
ndpi_free(flow->telnet.password);
flow->telnet.password = NULL;