add --eapdir option only if defined in ipsec.conf

This commit is contained in:
Andreas Steffen
2007-02-14 00:53:45 +00:00
parent cda642a152
commit 8245a9142c
+5 -2
View File
@@ -116,8 +116,11 @@ starter_start_charon (starter_config_t *cfg, bool debug)
{ {
arg[argc++] = "--strictcrlpolicy"; arg[argc++] = "--strictcrlpolicy";
} }
arg[argc++] = "--eapdir"; if (cfg->setup.eapdir)
arg[argc++] = cfg->setup.eapdir; {
arg[argc++] = "--eapdir";
arg[argc++] = cfg->setup.eapdir;
}
{ /* parse debug string */ { /* parse debug string */
char *pos, *level, *buf_pos, type[4], buffer[512]; char *pos, *level, *buf_pos, type[4], buffer[512];