diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2023-08-20 15:18:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-20 15:18:19 +0200 |
commit | cc4461f4246f9e8eca9be5796aa53ec785d1a4f0 (patch) | |
tree | 873eb5d7a031e23c8c0401fa63b17af6cb105e2f /example | |
parent | 5867f43fae70b1a08b64e8635bf8183ba4d29124 (diff) |
fuzz: extend coverage (#2073)
Diffstat (limited to 'example')
-rw-r--r-- | example/reader_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |