aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2024-08-26 21:01:18 +0200
committerGitHub <noreply@github.com>2024-08-26 21:01:18 +0200
commit34e1ac0bbbc33698953a9b4a3de67bb1b8f2445c (patch)
tree631d9967b2d5da0b97630635a823bbce9591e1d6
parent6fcd1ba9419da36587e7bb58cd9599f090fa42ab (diff)
fuzz: fix compilation (#2532)
-rw-r--r--fuzz/fuzz_config.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/fuzz/fuzz_config.cpp b/fuzz/fuzz_config.cpp
index 42b3ae611..e9a69739c 100644
--- a/fuzz/fuzz_config.cpp
+++ b/fuzz/fuzz_config.cpp
@@ -488,7 +488,6 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
ndpi_get_proto_by_name(ndpi_info_mod, NULL); /* Error */
ndpi_get_proto_by_name(ndpi_info_mod, "foo"); /* Invalid protocol */
ndpi_get_proto_name(ndpi_info_mod, pid);
- ndpi_get_protocol_id(ndpi_info_mod, protoname);
struct in_addr pin;
struct in6_addr pin6;
@@ -570,7 +569,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
ndpi_get_flow_error_code(&flow);
ndpi_get_flow_risk_info(&flow, out, sizeof(out), 1);
ndpi_get_flow_ndpi_proto(&flow, &p2);
- ndpi_is_proto(p, NDPI_PROTOCOL_TLS);
+ ndpi_is_proto(p.proto, NDPI_PROTOCOL_TLS);
ndpi_http_method2str(flow.http.method);
ndpi_is_subprotocol_informative(p.proto.app_protocol);
ndpi_get_http_method(bool_value ? &flow : NULL);