]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: don't eval unary arguments
authorJeremy Sowden <jeremy@azazel.net>
Fri, 17 Mar 2023 09:16:43 +0000 (10:16 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 28 Mar 2023 08:26:34 +0000 (10:26 +0200)
commit6bea6864b799905c8cc5f7a3f9488c88e219c481
treee84863fe654984b4bed929f1482e8f84e869dea9
parentedecd58755a84dbe8f36795f619189490eeb3ef1
evaluate: don't eval unary arguments

When a unary expression is inserted to implement a byte-order
conversion, the expression being converted has already been evaluated
and so `expr_evaluate_unary` doesn't need to do so.

This is required by {ct|meta} statements with bitwise operations, which
might result in byteorder conversion of the expression.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/evaluate.c