diff options
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r-- | src/lib/ndpi_utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index e20dca6f3..4d7aedca3 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -2528,7 +2528,9 @@ char* ndpi_get_flow_risk_info(struct ndpi_flow_struct *flow, u_int8_t use_json) { u_int i, offset = 0; - if((out == NULL) || (flow->num_risk_infos == 0)) + if((out == NULL) + || (flow == NULL) + || (flow->num_risk_infos == 0)) return(NULL); if(use_json) { |