aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2007-07-02 17:42:16 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2007-07-02 17:42:16 +0000
commit2f806bd86660708ae19d088957d5772c9cfbec4b (patch)
tree706e81d11d78429202cb6e663e461a52b7bcdd56
parente3606f2ba1a13389e0de779635b0b78b37cbba1b (diff)
downloadstrongswan-2f806bd86660708ae19d088957d5772c9cfbec4b.tar.bz2
strongswan-2f806bd86660708ae19d088957d5772c9cfbec4b.tar.xz
bug fix courtesy of Robert Varga
-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);