deinit() library if integrity check fails

This commit is contained in:
Martin Willi
2009-06-22 16:18:53 +02:00
parent 4f2c48cd3d
commit f0f420229a
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -670,6 +670,7 @@ int main(int argc, char *argv[])
/* initialize library */ /* initialize library */
if (!library_init(STRONGSWAN_CONF)) if (!library_init(STRONGSWAN_CONF))
{ {
library_deinit();
exit(-1); exit(-1);
} }
+1
View File
@@ -262,6 +262,7 @@ int main(int argc, char **argv)
/* initialize library and optionsfrom */ /* initialize library and optionsfrom */
if (!library_init(STRONGSWAN_CONF)) if (!library_init(STRONGSWAN_CONF))
{ {
library_deinit();
abort(); abort();
} }
if (lib->integrity && if (lib->integrity &&