From f35a0d78fe870737fa39d859bd2e3ac25bf1b12e Mon Sep 17 00:00:00 2001 From: Sriram Rajagopalan Date: Wed, 13 Mar 2024 01:32:42 -0700 Subject: [PATCH] nftables: do mot merge payloads on negation else, a rule like tcp sport != 22 tcp dport != 23 will match even if the destination is 23 as long as sport is != 22. (or vice versa). Signed-off-by: Sriram Rajagopalan Signed-off-by: Florian Westphal --- src/rule.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/rule.c b/src/rule.c index 9e418d8c..45289cc0 100644 --- a/src/rule.c +++ b/src/rule.c @@ -2766,7 +2766,6 @@ static void stmt_reduce(const struct rule *rule) switch (stmt->expr->op) { case OP_EQ: case OP_IMPLICIT: - case OP_NEQ: break; default: continue; -- 2.47.2