Initialization fix

This commit is contained in:
Luca Deri
2020-12-28 11:57:20 +01:00
parent 0fceb6576a
commit 7f944cc43b
+2 -3
View File
@@ -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);