aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2007-02-14 00:53:45 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2007-02-14 00:53:45 +0000
commit8245a9142ce101317851a171a744485c404fcfcd (patch)
treec291e44c8d6886bb0ce7aef620f49d6cdbbdfd95
parentcda642a1522d9eb9947d3f289915eb8ef938000d (diff)
downloadstrongswan-8245a9142ce101317851a171a744485c404fcfcd.tar.bz2
strongswan-8245a9142ce101317851a171a744485c404fcfcd.tar.xz
add --eapdir option only if defined in ipsec.conf
-rw-r--r--src/starter/invokecharon.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/starter/invokecharon.c b/src/starter/invokecharon.c
index 29b241234..1fceae7e8 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];