Added check

This commit is contained in:
Luca Deri
2023-10-29 22:54:45 +01:00
parent 2c2eaf8e79
commit b8e0602bfd
+1
View File
@@ -2503,6 +2503,7 @@ void ndpi_handle_risk_exceptions(struct ndpi_detection_module_struct *ndpi_str,
void ndpi_set_risk(struct ndpi_detection_module_struct *ndpi_str,
struct ndpi_flow_struct *flow, ndpi_risk_enum r,
char *risk_message) {
if(!flow) return;
/* Check if the risk is not yet set */
if(!ndpi_isset_risk(ndpi_str, flow, r)) {