From 03ecb026ff4d0e545cf21d463807b40265441bb3 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Fri, 9 Feb 2024 19:19:03 +0100 Subject: fuzz: improve fuzzing coverage (#2309) --- src/lib/ndpi_utils.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/lib/ndpi_utils.c') diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index b80485c96..17e15b839 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -2955,13 +2955,8 @@ u_int8_t ndpi_check_flow_risk_exceptions(struct ndpi_detection_module_struct *nd return(1); break; - case NDPI_MAX_RISK_PARAM_ID: - /* Nothing to do, just avoid warnings */ - break; - default: - printf("nDPI [%s:%u] Ignored risk parameter id %u\n", - __FILE__, __LINE__, params[i].id); + NDPI_LOG_ERR(ndpi_str, "Ignored risk parameter id %u\n", params[i].id); break; } } -- cgit v1.2.3