handle plugin loading failures
This commit is contained in:
1 parent
d6a45127dc
commit
8fb4edc4ff
8 files changed
+44
-21
No files matched your search
+5
-2
@@ -35,8 +35,11 @@ int main (int arc, char *argv[])
|
||||
int threads, timeout;
|
||||
|
||||
library_init(STRONGSWAN_CONF);
|
||||
lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR,
|
||||
lib->settings->get_str(lib->settings, "manager.load", PLUGINS));
|
||||
if (!lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR,
|
||||
lib->settings->get_str(lib->settings, "manager.load", PLUGINS)))
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
socket = lib->settings->get_str(lib->settings, "manager.socket", NULL);
|
||||
debug = lib->settings->get_bool(lib->settings, "manager.debug", FALSE);
|
||||
|
||||
Reference in new issue
Block a user