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
@ -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