Fix a regression in pf.conf while parsing the 'interval' keyword.
The bug was introduced by r287009. PR: 210924 Submitted by: kp@ Sponsored by: Rubicon Communications (Netgate) Pointy hat to: loos
This commit is contained in:
parent
13cfafabf4
commit
7f8af000a9
@ -4460,6 +4460,16 @@ timeout_spec : STRING NUMBER
|
|||||||
}
|
}
|
||||||
free($1);
|
free($1);
|
||||||
}
|
}
|
||||||
|
| INTERVAL NUMBER {
|
||||||
|
if (check_rulestate(PFCTL_STATE_OPTION))
|
||||||
|
YYERROR;
|
||||||
|
if ($2 < 0 || $2 > UINT_MAX) {
|
||||||
|
yyerror("only positive values permitted");
|
||||||
|
YYERROR;
|
||||||
|
}
|
||||||
|
if (pfctl_set_timeout(pf, "interval", $2, 0) != 0)
|
||||||
|
YYERROR;
|
||||||
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
timeout_list : timeout_list comma timeout_spec optnl
|
timeout_list : timeout_list comma timeout_spec optnl
|
||||||
|
Loading…
x
Reference in New Issue
Block a user