Make ndpi_finalize_initialization() returns an error code

We should check if the initialization was fine or not
This commit is contained in:
Nardi Ivan
2024-01-18 10:21:24 +01:00
committed by Ivan Nardi
parent d72a760ac3
commit 3107a95881
3 changed files with 14 additions and 9 deletions
+3 -1
View File
@@ -222,8 +222,10 @@ extern "C" {
*
* @par ndpi_str = the struct created for the protocol detection
*
* @return 0 on success
*
*/
void ndpi_finalize_initialization(struct ndpi_detection_module_struct *ndpi_str);
int ndpi_finalize_initialization(struct ndpi_detection_module_struct *ndpi_str);
/**
* Frees the dynamic memory allocated members in the specified flow