Added detection of plugins not enabled

This commit is contained in:
Luca Deri 2025-12-30 18:47:40 +01:00
parent 7d00f37528
commit bfbb6eb2df

View file

@ -39,9 +39,9 @@
/* ************************************** */
/* Load a single protocol plugin */
#ifdef HAVE_PLUGINS
static bool ndpi_load_protocol_plugin(struct ndpi_detection_module_struct *ndpi_struct,
char *plugin_path) {
#ifdef HAVE_PLUGINS
void *pluginEntryFctnPtr;
void *pluginPtr;
NDPIProtocolPluginEntryPoint* (*pluginEntryFctn)(void);
@ -94,8 +94,10 @@ static bool ndpi_load_protocol_plugin(struct ndpi_detection_module_struct *ndpi_
}
return(true);
}
#else
return(false);
#endif
}
/* ************************************** */