aboutsummaryrefslogtreecommitdiffstats
path: root/src/scepclient/scepclient.c
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/scepclient/scepclient.c
parentf1777dff59a24718265eeb5e37aaf765b34dfb53 (diff)
downloadstrongswan-2f5b1e0eb7065aa29dc294fcb9311be588eeb3fb.tar.bz2
strongswan-2f5b1e0eb7065aa29dc294fcb9311be588eeb3fb.tar.xz
check success of library_init()
Diffstat (limited to 'src/scepclient/scepclient.c')
-rw-r--r--src/scepclient/scepclient.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/scepclient/scepclient.c b/src/scepclient/scepclient.c
index 1139cc25a..88dd28521 100644
--- a/src/scepclient/scepclient.c
+++ b/src/scepclient/scepclient.c
@@ -386,8 +386,14 @@ int main(int argc, char **argv)
scep_response = chunk_empty;
log_to_stderr = TRUE;
- /* initialize library and optionsfrom */
- library_init(STRONGSWAN_CONF);
+ /* initialize library */
+ if (!library_init(STRONGSWAN_CONF))
+ {
+ library_deinit();
+ exit(SS_RC_LIBSTRONGSWAN_INTEGRITY);
+ }
+
+ /* initialize optionsfrom */
options = options_create();
for (;;)