bug fix courtesy of Robert Varga

This commit is contained in:
Andreas Steffen 2007-07-02 17:42:16 +00:00
parent e3606f2ba1
commit 2f806bd866

View File

@ -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);