diff options
author | Martin Willi <martin@strongswan.org> | 2009-09-01 16:20:45 +0200 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-09-01 16:20:45 +0200 |
commit | 8fb4edc4ff59fca5dba590f567ffa559bf28522e (patch) | |
tree | 8e48124a54c18e60231bffc092ab6cdb99670fe5 /src/charon/daemon.c | |
parent | d6a45127dcce4263bd89710e4d065ee718177490 (diff) | |
download | strongswan-8fb4edc4ff59fca5dba590f567ffa559bf28522e.tar.bz2 strongswan-8fb4edc4ff59fca5dba590f567ffa559bf28522e.tar.xz |
handle plugin loading failures
Diffstat (limited to 'src/charon/daemon.c')
-rw-r--r-- | src/charon/daemon.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/charon/daemon.c b/src/charon/daemon.c index 0689c448e..cf2b1c7be 100644 --- a/src/charon/daemon.c +++ b/src/charon/daemon.c @@ -491,8 +491,11 @@ static bool initialize(private_daemon_t *this, bool syslog, level_t levels[]) this->public.traps = trap_manager_create(); /* load plugins, further infrastructure may need it */ - lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR, - lib->settings->get_str(lib->settings, "charon.load", PLUGINS)); + if (!lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR, + lib->settings->get_str(lib->settings, "charon.load", PLUGINS))) + { + return FALSE; + } print_plugins(); |