aboutsummaryrefslogtreecommitdiffstats
path: root/src/starter/invokecharon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/starter/invokecharon.c')
-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];