diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2007-07-02 17:48:30 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2007-07-02 17:48:30 +0000 |
commit | fdd32ee6e543d6461025a4d24c3dd8fa77985eb1 (patch) | |
tree | 5b0e356df8ed6dccc3513e70c31f550514f955dc /src/starter/starter.c | |
parent | 2f806bd86660708ae19d088957d5772c9cfbec4b (diff) | |
download | strongswan-fdd32ee6e543d6461025a4d24c3dd8fa77985eb1.tar.bz2 strongswan-fdd32ee6e543d6461025a4d24c3dd8fa77985eb1.tar.xz |
fix of the bug fix, courtesy of Robert Varga
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); } |