aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/starter/starter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/starter/starter.c b/src/starter/starter.c
index 650ace34a..de00c38ef 100644
--- a/src/starter/starter.c
+++ b/src/starter/starter.c
@@ -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);