check success of library_init()
This commit is contained in:
@@ -637,8 +637,13 @@ int main(int argc, char *argv[])
|
||||
} operation = OP_USAGE;
|
||||
|
||||
dbg = dbg_stderr;
|
||||
library_init(STRONGSWAN_CONF);
|
||||
atexit(library_deinit);
|
||||
|
||||
/* initialize library */
|
||||
if (!library_init(STRONGSWAN_CONF))
|
||||
{
|
||||
exit(SS_RC_LIBSTRONGSWAN_INTEGRITY);
|
||||
}
|
||||
lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR,
|
||||
lib->settings->get_str(lib->settings, "pool.load", PLUGINS));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user