fix of the bug fix, courtesy of Robert Varga
authorAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 2 Jul 2007 17:48:30 +0000 (17:48 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 2 Jul 2007 17:48:30 +0000 (17:48 -0000)
src/starter/starter.c

index de00c38..3cf7017 100644 (file)
@@ -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);
     }