fix of the bug fix, courtesy of Robert Varga
This commit is contained in:
@@ -240,7 +240,10 @@ int main (int argc, char **argv)
|
|||||||
if (cfg == NULL || cfg->err > 0)
|
if (cfg == NULL || cfg->err > 0)
|
||||||
{
|
{
|
||||||
plog("unable to start strongSwan -- fatal errors in config");
|
plog("unable to start strongSwan -- fatal errors in config");
|
||||||
confread_free(cfg);
|
if (cfg)
|
||||||
|
{
|
||||||
|
confread_free(cfg);
|
||||||
|
}
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user