]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: don't update cache for anonymous chains
authorFlorian Westphal <fw@strlen.de>
Wed, 19 Mar 2025 20:05:53 +0000 (21:05 +0100)
committerFlorian Westphal <fw@strlen.de>
Sat, 22 Mar 2025 22:47:26 +0000 (23:47 +0100)
commitbd1fc6c740535d1ad3f38f8ba9c539c14f1732f3
treef9e8cb9527e57ec6f090937103a410c7ea84f33b
parent0298bc012e020b2fca8ecc60b0091798d091e1fd
evaluate: don't update cache for anonymous chains

Chain lookup needs a name, not a numerical id.
After patch, loading bogon gives following errors:

Error: No symbol type information a b index 1 10.1.26.a

v2: Don't return an error, just make it a no-op (Pablo Neira Ayuso)

Fixes: c330152b7f77 ("src: support for implicit chain bindings")
Signed-off-by: Florian Westphal <fw@strlen.de>
src/evaluate.c
tests/shell/testcases/bogons/nft-f/null_deref_on_anon_chain_update_crash [new file with mode: 0644]