diff options
author | Luca Deri <deri@ntop.org> | 2023-10-25 22:27:17 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2023-10-29 22:54:45 +0100 |
commit | b8e0602bfd5d3696272550fdd28ddfedd94dff6c (patch) | |
tree | 5fb673b9170afb279799d1fa25ec56f9b006684a /src/lib/ndpi_utils.c | |
parent | 2c2eaf8e79d99afffe9467e253dc4ea2ac41fe36 (diff) |
Added check
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r-- | src/lib/ndpi_utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
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)) { |