From b8e0602bfd5d3696272550fdd28ddfedd94dff6c Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Wed, 25 Oct 2023 22:27:17 +0200 Subject: Added check --- src/lib/ndpi_utils.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index bd28d82c4..7fbecd9f9 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -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)) { -- cgit v1.2.3