deinit() library if integrity check fails
This commit is contained in:
@@ -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