Initialization fix
This commit is contained in:
+2
-3
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user