summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/bogons/nft-f/define_policy_assert
Commit message (Collapse)AuthorAgeFilesLines
* rule: fix sym refcount assertionFlorian Westphal2024-01-151-0/+3
Scope release must happen last. afl provided a reproducer where policy is a define, because scope is released too early we get: nft: src/rule.c:559: scope_release: Assertion `sym->refcnt == 1' failed. ... because chain->policy is EXPR_SYMBOL. Fixes: 627c451b2351 ("src: allow variables in the chain priority specification") Signed-off-by: Florian Westphal <fw@strlen.de>