check success of library_init()

This commit is contained in:
Andreas Steffen
2009-08-14 22:13:51 +02:00
parent f1777dff59
commit 2f5b1e0eb7
3 changed files with 19 additions and 4 deletions
+8 -2
View File
@@ -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 (;;)