aboutsummaryrefslogtreecommitdiff
path: root/fuzz/fuzz_common_code.c
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2023-04-25 16:37:28 +0200
committerGitHub <noreply@github.com>2023-04-25 16:37:28 +0200
commit40b6d5a2e193322e6e93b2eeb087c51d8eb6faad (patch)
treecb5a338df534f710c74107717cc9be54c07211ac /fuzz/fuzz_common_code.c
parentde693cbbc91d4144b8d67a8c99c565ea21cece09 (diff)
fuzz: extend fuzzers coverage (#1952)
Diffstat (limited to 'fuzz/fuzz_common_code.c')
-rw-r--r--fuzz/fuzz_common_code.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fuzz/fuzz_common_code.c b/fuzz/fuzz_common_code.c
index 30dc5baa7..88b7adf2d 100644
--- a/fuzz/fuzz_common_code.c
+++ b/fuzz/fuzz_common_code.c
@@ -38,19 +38,16 @@ void fuzz_init_detection_module(struct ndpi_detection_module_struct **ndpi_info_
{
ndpi_init_prefs prefs = ndpi_enable_ja3_plus;
NDPI_PROTOCOL_BITMASK all;
+ NDPI_PROTOCOL_BITMASK debug_bitmask;
if(*ndpi_info_mod == NULL) {
*ndpi_info_mod = ndpi_init_detection_module(prefs);
NDPI_BITMASK_SET_ALL(all);
ndpi_set_protocol_detection_bitmask2(*ndpi_info_mod, &all);
-#if 0
- NDPI_PROTOCOL_BITMASK debug_bitmask;
-
NDPI_BITMASK_SET_ALL(debug_bitmask);
ndpi_set_log_level(*ndpi_info_mod, 4);
ndpi_set_debug_bitmask(*ndpi_info_mod, debug_bitmask);
-#endif
ndpi_load_protocols_file(*ndpi_info_mod, "protos.txt");
ndpi_load_categories_file(*ndpi_info_mod, "categories.txt", NULL);