mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-15 00:00:16 -04:00
bug fix courtesy of Robert Varga
This commit is contained in:
parent
e3606f2ba1
commit
2f806bd866
@ -237,7 +237,7 @@ int main (int argc, char **argv)
|
||||
}
|
||||
|
||||
cfg = confread_load(CONFIG_FILE);
|
||||
if (cfg->err > 0)
|
||||
if (cfg == NULL || cfg->err > 0)
|
||||
{
|
||||
plog("unable to start strongSwan -- fatal errors in config");
|
||||
confread_free(cfg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user