diff options
author | Toni <matzeton@googlemail.com> | 2021-05-09 15:09:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-09 15:09:43 +0200 |
commit | 8c28613eb27983272912d0b99e510eff5416ac60 (patch) | |
tree | 910dc86e4ae00811a7a01d9e9057a02615dcffcf /example/reader_util.c | |
parent | 0663544be8a0e0ea644655b736f9b0a47453c105 (diff) |
Check datalink during fuzzing to prevent console / logfile spam. See #1175 for more information. (#1177)
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'example/reader_util.c')
-rw-r--r-- | example/reader_util.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/example/reader_util.c b/example/reader_util.c index 18c8c6e2a..caa49fe07 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -1775,15 +1775,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); } |