aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_utils.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2022-07-04 21:38:38 +0200
committerLuca Deri <deri@ntop.org>2022-07-04 21:38:38 +0200
commit461589517e50c201bf063c7d4dbb3639e43f4268 (patch)
treee44458b5934e35f80b8144426bb58251b5ddcaee /src/lib/ndpi_utils.c
parente7a5eaecde866a028fce78ccfa5bcf8fda558036 (diff)
Updated ndpi_check_flow_risk_exceptions() signature
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r--src/lib/ndpi_utils.c14
1 files changed, 7 insertions, 7 deletions
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; (i<num_params) && (params[i] != NULL); i++) {
- switch(params[i]->id) {
+ for(i=0; i<num_params; i++) {
+ switch(params[i].id) {
case NDPI_PARAM_HOSTNAME:
- if(ndpi_check_hostname_risk_exception(ndpi_str, NULL, (char*)params[i]->value))
+ 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;
}
}