aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiSimpleIntegration.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/ndpiSimpleIntegration.c')
-rw-r--r--example/ndpiSimpleIntegration.c5
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;
}