aboutsummaryrefslogtreecommitdiff
path: root/example/reader_util.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2021-04-27 20:34:47 +0200
committerToni Uhlig <matzeton@googlemail.com>2021-04-27 20:34:47 +0200
commit65becc947c796b9aacb1f6f2c9cdfbc1d808cb5f (patch)
treef6bb83074c00a05ccca10aa1e56cc4bee06bde03 /example/reader_util.c
parentdd651420207129a24267c3cb308232752caf6a0d (diff)
Check datalink during fuzzing to prevent console / logfile spam. See #1175 for more information.improved/fuzz-reader
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'example/reader_util.c')
-rw-r--r--example/reader_util.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/example/reader_util.c b/example/reader_util.c
index af58d8db5..6a9b6f90e 100644
--- a/example/reader_util.c
+++ b/example/reader_util.c
@@ -1773,15 +1773,11 @@ struct ndpi_proto ndpi_workflow_process_packet(struct ndpi_workflow * workflow,
break;
default:
-#ifndef BUILD_FUZZTARGETS
/*
* We shoudn't be here, because we already checked that this datalink is supported.
* Should ndpi_is_datalink_supported() be updated?
- *
- * NOTE (toni): We get here quite often during fuzzing and it spams consoles and logfiles. ;)
*/
printf("Unknown datalink %d\n", datalink_type);
-#endif
return(nproto);
}