diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2025-06-14 11:31:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-14 11:31:23 +0200 |
commit | 28ae2e14d815ee957b2c2838a3a24461912a5bfb (patch) | |
tree | 6a81cd4df508430fa0da2785df5f6d7b6b613ce8 /example/ndpiSimpleIntegration.c | |
parent | 2b3fdb4f8ad94298becab23070b6a092cd702a4b (diff) |
Check `ndpi_finalize_initialization()` return value (#2884)
Diffstat (limited to 'example/ndpiSimpleIntegration.c')
-rw-r--r-- | example/ndpiSimpleIntegration.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/example/ndpiSimpleIntegration.c b/example/ndpiSimpleIntegration.c index 13e395e70..f526e1d26 100644 --- a/example/ndpiSimpleIntegration.c +++ b/example/ndpiSimpleIntegration.c @@ -210,7 +210,10 @@ static struct nDPI_workflow * init_workflow(char const * const file_or_device) return NULL; } - ndpi_finalize_initialization(workflow->ndpi_struct); + if(ndpi_finalize_initialization(workflow->ndpi_struct) != 0) { + free_workflow(&workflow); + return NULL; + } return workflow; } |