Fix memory corruption on TCP flows (#1786)

This commit is contained in:
Ivan Nardi
2022-10-25 16:22:40 +02:00
committed by GitHub
parent 550f3e5b9d
commit 2ed2e5dc7e
+2 -1
View File
@@ -5412,7 +5412,8 @@ void ndpi_connection_tracking(struct ndpi_detection_module_struct *ndpi_str,
flow->init_finished = 1;
if(ndpi_str->input_info &&
if(tcph != NULL &&
ndpi_str->input_info &&
ndpi_str->input_info->seen_flow_beginning == NDPI_FLOW_BEGINNING_SEEN) {
flow->l4.tcp.seen_syn = 1;
flow->l4.tcp.seen_syn_ack = 1;