From 461589517e50c201bf063c7d4dbb3639e43f4268 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Mon, 4 Jul 2022 21:38:38 +0200 Subject: Updated ndpi_check_flow_risk_exceptions() signature --- src/lib/ndpi_utils.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/lib') diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index cbfe38c8a..e1a088ee5 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -2644,23 +2644,23 @@ char* ndpi_get_flow_risk_info(struct ndpi_flow_struct *flow, */ u_int8_t ndpi_check_flow_risk_exceptions(struct ndpi_detection_module_struct *ndpi_str, u_int num_params, - ndpi_risk_params **params) { + ndpi_risk_params params[]) { u_int i; - for(i=0; (iid) { + for(i=0; ivalue)) + if(ndpi_check_hostname_risk_exception(ndpi_str, NULL, (char*)params[i].value)) return(1); break; case NDPI_PARAM_ISSUER_DN: - if(ndpi_check_issuerdn_risk_exception(ndpi_str, (char*)params[i]->value)) + if(ndpi_check_issuerdn_risk_exception(ndpi_str, (char*)params[i].value)) return(1); break; case NDPI_PARAM_HOST_IPV4: - if(ndpi_check_ipv4_exception(ndpi_str, NULL, *((u_int32_t*)params[i]->value))) + if(ndpi_check_ipv4_exception(ndpi_str, NULL, *((u_int32_t*)params[i].value))) return(1); break; @@ -2670,7 +2670,7 @@ u_int8_t ndpi_check_flow_risk_exceptions(struct ndpi_detection_module_struct *nd default: printf("nDPI [%s:%u] Ignored risk parameter id %u\n", - __FILE__, __LINE__, params[i]->id); + __FILE__, __LINE__, params[i].id); break; } } -- cgit v1.2.3