deinit() library if integrity check fails
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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 &&
|
||||||
|
|||||||
Reference in New Issue
Block a user