diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2007-07-02 17:42:16 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2007-07-02 17:42:16 +0000 |
commit | 2f806bd86660708ae19d088957d5772c9cfbec4b (patch) | |
tree | 706e81d11d78429202cb6e663e461a52b7bcdd56 | |
parent | e3606f2ba1a13389e0de779635b0b78b37cbba1b (diff) | |
download | strongswan-2f806bd86660708ae19d088957d5772c9cfbec4b.tar.bz2 strongswan-2f806bd86660708ae19d088957d5772c9cfbec4b.tar.xz |
bug fix courtesy of Robert Varga
-rw-r--r-- | src/starter/starter.c | 2 |
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); |