From cc4461f4246f9e8eca9be5796aa53ec785d1a4f0 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Sun, 20 Aug 2023 15:18:19 +0200 Subject: fuzz: extend coverage (#2073) --- example/reader_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example') diff --git a/example/reader_util.c b/example/reader_util.c index 268f87ed1..071acb774 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -469,14 +469,14 @@ struct ndpi_workflow* ndpi_workflow_init(const struct ndpi_workflow_prefs * pref if(module == NULL) { LOG(NDPI_LOG_ERROR, "global structure initialization failed\n"); - exit(-1); + return NULL; } workflow = ndpi_calloc(1, sizeof(struct ndpi_workflow)); if(workflow == NULL) { LOG(NDPI_LOG_ERROR, "global structure initialization failed\n"); ndpi_free(module); - exit(-1); + return NULL; } workflow->pcap_handle = pcap_handle; -- cgit v1.2.3