aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/daemon.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2009-09-01 16:20:45 +0200
committerMartin Willi <martin@strongswan.org>2009-09-01 16:20:45 +0200
commit8fb4edc4ff59fca5dba590f567ffa559bf28522e (patch)
tree8e48124a54c18e60231bffc092ab6cdb99670fe5 /src/charon/daemon.c
parentd6a45127dcce4263bd89710e4d065ee718177490 (diff)
downloadstrongswan-8fb4edc4ff59fca5dba590f567ffa559bf28522e.tar.bz2
strongswan-8fb4edc4ff59fca5dba590f567ffa559bf28522e.tar.xz
handle plugin loading failures
Diffstat (limited to 'src/charon/daemon.c')
-rw-r--r--src/charon/daemon.c7
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();