mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Handle jail.conf variables that have the same names as parameters.
PR: 248444 Submitted by: Akos Somfai Reported by: Markus Stoff
This commit is contained in:
parent
82178ae093
commit
177b077e57
1 changed files with 2 additions and 1 deletions
|
|
@ -393,7 +393,8 @@ add_param(struct cfjail *j, const struct cfparam *p, enum intparam ipnum,
|
|||
else
|
||||
for (ipnum = IP__NULL + 1; ipnum < IP_NPARAM; ipnum++)
|
||||
if (!(intparams[ipnum].flags & PF_CONV) &&
|
||||
equalopts(name, intparams[ipnum].name)) {
|
||||
equalopts(name, intparams[ipnum].name) &&
|
||||
!(p->flags & PF_VAR)) {
|
||||
j->intparams[ipnum] = np;
|
||||
np->flags |= intparams[ipnum].flags;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue