handle plugin loading failures
This commit is contained in:
1 parent
d6a45127dc
commit
8fb4edc4ff
8 files changed
+44
-21
No files matched your search
@@ -652,8 +652,11 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
/* load plugins, further infrastructure may need it */
|
||||
lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR,
|
||||
lib->settings->get_str(lib->settings, "pluto.load", PLUGINS));
|
||||
if (!lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR,
|
||||
lib->settings->get_str(lib->settings, "pluto.load", PLUGINS)))
|
||||
{
|
||||
exit(SS_RC_INITIALIZATION_FAILED);
|
||||
}
|
||||
print_plugins();
|
||||
|
||||
init_builder();
|
||||
|
||||
Reference in new issue
Block a user