]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: don't BUG on unexpected base datatype
authorFlorian Westphal <fw@strlen.de>
Fri, 13 Jun 2025 14:46:06 +0000 (16:46 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 13 Aug 2025 18:08:58 +0000 (20:08 +0200)
commit39197149002b8197b327d93aff808c1152b7960c
tree38c4257750d0beb81663e263c04ad7ef0e0e99c9
parent7f9a74f91121812a4fb8cf17e14e54eec5d4f6d5
evaluate: don't BUG on unexpected base datatype

commit 845b8d7208077310e77560a64b698973fb047ef2 upstream.

Included bogon will cause a crash but this is the evaluation stage where
we can just emit an error instead.

Signed-off-by: Florian Westphal <fw@strlen.de>
src/evaluate.c
tests/shell/testcases/bogons/nft-f/invalid_basetype_verdict_assert [new file with mode: 0644]