From 7f944cc43ba58b5d049e36b7cbe1556e79790172 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Mon, 28 Dec 2020 11:57:20 +0100 Subject: Initialization fix --- src/lib/ndpi_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 1c08a596a..68c5fa926 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -6301,7 +6301,7 @@ int ndpi_match_bigram(struct ndpi_detection_module_struct *ndpi_str, void ndpi_free_flow(struct ndpi_flow_struct *flow) { if(flow) { - u_int is_quic; + u_int is_quic = flow_is_proto(flow, NDPI_PROTOCOL_QUIC); if(flow->http.url) ndpi_free(flow->http.url); @@ -6315,8 +6315,7 @@ void ndpi_free_flow(struct ndpi_flow_struct *flow) { if(flow->kerberos_buf.pktbuf) ndpi_free(flow->kerberos_buf.pktbuf); - if(flow_is_proto(flow, NDPI_PROTOCOL_TLS) || - (is_quic = flow_is_proto(flow, NDPI_PROTOCOL_QUIC))) { + if(is_quic || flow_is_proto(flow, NDPI_PROTOCOL_TLS)) { if(flow->protos.stun_ssl.ssl.server_names) ndpi_free(flow->protos.stun_ssl.ssl.server_names); -- cgit v1.2.3