aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/plugins/sql
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2009-08-14 22:13:51 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2009-08-14 22:13:51 +0200
commit2f5b1e0eb7065aa29dc294fcb9311be588eeb3fb (patch)
tree43ea150f03786f0ef31d8d7f092978ee74d0984f /src/charon/plugins/sql
parentf1777dff59a24718265eeb5e37aaf765b34dfb53 (diff)
downloadstrongswan-2f5b1e0eb7065aa29dc294fcb9311be588eeb3fb.tar.bz2
strongswan-2f5b1e0eb7065aa29dc294fcb9311be588eeb3fb.tar.xz
check success of library_init()
Diffstat (limited to 'src/charon/plugins/sql')
-rw-r--r--src/charon/plugins/sql/pool.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/charon/plugins/sql/pool.c b/src/charon/plugins/sql/pool.c
index 7d393b6f7..d45c5799e 100644
--- a/src/charon/plugins/sql/pool.c
+++ b/src/charon/plugins/sql/pool.c
@@ -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));