Fix corner case causing access to already freed memory

This commit is contained in:
emanuele-f
2019-12-04 18:36:54 +01:00
parent 226a9abf22
commit d37b69ce9c
+1 -1
View File
@@ -4702,7 +4702,7 @@ ndpi_protocol ndpi_detection_process_packet(struct ndpi_detection_module_struct
ndpi_process_extra_packet(ndpi_str, flow, packet, packetlen, current_tick_l, src, dst);
/* Update in case of new match */
ret.master_protocol = flow->detected_protocol_stack[1], ret.app_protocol = flow->detected_protocol_stack[0], ret.category = flow->category;;
return(ret);
goto invalidate_ptr;
} else
goto ret_protocols;
}