Check datalink during fuzzing to prevent console / logfile spam. See #1175 for more information. (#1177)

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni
2021-05-09 15:09:43 +02:00
committed by GitHub
parent 0663544be8
commit 8c28613eb2
3 changed files with 8 additions and 9 deletions
-4
View File
@@ -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);
}