aboutsummaryrefslogtreecommitdiffstats
path: root/src/starter/starter.c
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2007-07-02 17:48:30 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2007-07-02 17:48:30 +0000
commitfdd32ee6e543d6461025a4d24c3dd8fa77985eb1 (patch)
tree5b0e356df8ed6dccc3513e70c31f550514f955dc /src/starter/starter.c
parent2f806bd86660708ae19d088957d5772c9cfbec4b (diff)
downloadstrongswan-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.c5
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);
}