]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: check XOR RHS operand is a constant value
authorFlorian Westphal <fw@strlen.de>
Tue, 5 Aug 2025 19:40:14 +0000 (21:40 +0200)
committerFlorian Westphal <fw@strlen.de>
Mon, 18 Aug 2025 14:41:57 +0000 (16:41 +0200)
commit6e20f54ef678c277c733055ef74f4515d6491c64
tree60f963897efff9071d7287943b9d7b09cff4d1c2
parent36f1fe74462ffc703a227bc65575c5b285f9d504
evaluate: check XOR RHS operand is a constant value

Now that we support non-constant RHS side in binary operations,
reject XOR with non-constant key: we cannot transfer the expression.

Fixes: 54bfc38c522b ("src: allow binop expressions with variable right-hand operands")
Signed-off-by: Florian Westphal <fw@strlen.de>
Reviewed-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/evaluate.c