pf: Prevent tables referenced by rules in anchors from getting disabled.
PR: 183198 Obtained from: OpenBSD MFC after: 2 weeks
This commit is contained in:
parent
0f9e47a9c4
commit
87e4ca37d5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=340265
@ -1754,6 +1754,7 @@ pfr_setflags_ktable(struct pfr_ktable *kt, int newf)
|
||||
PF_RULES_WASSERT();
|
||||
|
||||
if (!(newf & PFR_TFLAG_REFERENCED) &&
|
||||
!(newf & PFR_TFLAG_REFDANCHOR) &&
|
||||
!(newf & PFR_TFLAG_PERSIST))
|
||||
newf &= ~PFR_TFLAG_ACTIVE;
|
||||
if (!(newf & PFR_TFLAG_ACTIVE))
|
||||
|
Loading…
Reference in New Issue
Block a user