From: Andreas Steffen Date: Wed, 14 Feb 2007 00:53:45 +0000 (-0000) Subject: add --eapdir option only if defined in ipsec.conf X-Git-Tag: 4.0.7~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8245a9142ce101317851a171a744485c404fcfcd;p=thirdparty%2Fstrongswan.git add --eapdir option only if defined in ipsec.conf --- diff --git a/src/starter/invokecharon.c b/src/starter/invokecharon.c index 29b2412343..1fceae7e86 100644 --- a/src/starter/invokecharon.c +++ b/src/starter/invokecharon.c @@ -116,8 +116,11 @@ starter_start_charon (starter_config_t *cfg, bool debug) { arg[argc++] = "--strictcrlpolicy"; } - arg[argc++] = "--eapdir"; - arg[argc++] = cfg->setup.eapdir; + if (cfg->setup.eapdir) + { + arg[argc++] = "--eapdir"; + arg[argc++] = cfg->setup.eapdir; + } { /* parse debug string */ char *pos, *level, *buf_pos, type[4], buffer[512];