deinit() library if integrity check fails
This commit is contained in:
1 parent
4f2c48cd3d
commit
f0f420229a
2 files changed
+2
No files matched your search
@@ -670,6 +670,7 @@ int main(int argc, char *argv[])
|
||||
/* initialize library */
|
||||
if (!library_init(STRONGSWAN_CONF))
|
||||
{
|
||||
library_deinit();
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
|
||||
@@ -262,6 +262,7 @@ int main(int argc, char **argv)
|
||||
/* initialize library and optionsfrom */
|
||||
if (!library_init(STRONGSWAN_CONF))
|
||||
{
|
||||
library_deinit();
|
||||
abort();
|
||||
}
|
||||
if (lib->integrity &&
|
||||
|
||||
Reference in new issue
Block a user