aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_utils.c
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2024-02-09 19:19:03 +0100
committerGitHub <noreply@github.com>2024-02-09 19:19:03 +0100
commit03ecb026ff4d0e545cf21d463807b40265441bb3 (patch)
treefee3fca194dc2dd113e3b6dee782cc8b220f77e4 /src/lib/ndpi_utils.c
parentf5cec001f38f88cc0cdd8892dc6182dd8d7eafd0 (diff)
fuzz: improve fuzzing coverage (#2309)
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r--src/lib/ndpi_utils.c7
1 files changed, 1 insertions, 6 deletions
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;
}
}