diff options
Diffstat (limited to 'src/starter/starter.c')
-rw-r--r-- | src/starter/starter.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/starter/starter.c b/src/starter/starter.c index de00c38ef..3cf7017fd 100644 --- a/src/starter/starter.c +++ b/src/starter/starter.c @@ -240,7 +240,10 @@ int main (int argc, char **argv) if (cfg == NULL || cfg->err > 0) { plog("unable to start strongSwan -- fatal errors in config"); - confread_free(cfg); + if (cfg) + { + confread_free(cfg); + } exit(1); } |