diff options
author | Luca Deri <deri@ntop.org> | 2020-12-28 11:57:20 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2020-12-28 11:57:20 +0100 |
commit | 7f944cc43ba58b5d049e36b7cbe1556e79790172 (patch) | |
tree | 99a937ffe88845de49de06d0b128430b2dad94bc | |
parent | 0fceb6576aeb76b78ad9c19c86830fba694cfd5d (diff) |
Initialization fix
-rw-r--r-- | src/lib/ndpi_main.c | 5 |
1 files changed, 2 insertions, 3 deletions
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); |