mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Check if the -sec option is given without an argument.
PR: bin/170413 Submitted by: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua> MFC after: 1 week
This commit is contained in:
parent
d7cc11edce
commit
dcdc127b07
1 changed files with 1 additions and 1 deletions
|
|
@ -2235,7 +2235,7 @@ do_opt(char **cpp, char **endcpp, struct exportlist *ep, struct grouplist *grp,
|
|||
ep->ex_indexfile = strdup(cpoptarg);
|
||||
} else if (!strcmp(cpopt, "quiet")) {
|
||||
opt_flags |= OP_QUIET;
|
||||
} else if (!strcmp(cpopt, "sec")) {
|
||||
} else if (cpoptarg && !strcmp(cpopt, "sec")) {
|
||||
if (parsesec(cpoptarg, ep))
|
||||
return (1);
|
||||
opt_flags |= OP_SEC;
|
||||
|
|
|
|||
Loading…
Reference in a new issue