Skip to contentSkip to conversation

netfilter: nft_compat: fix bridge family target evaluation

PATCH In review Florian Westphal 2 participants 2 messages May 29, 2021

Subsystems (2)
lore
Share & tools
lore

Florian Westphal

author maintainer
#0 lore raw

PATCH 1/1 netfilter: nft_compat: fix bridge family target evaluation

This always evals to true, so all packets get dropped in the ebtables compat layer. ip(6)tables is fine.

Fixes 6d6dbfe7fe1e6e1 ("netfilter: nf_tables: remove xt_action_param from nft_pktinfo")

---
Pablo, feel free to squash if you prefer that.

 net/netfilter/nft_compat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/nft_compat.c +1 -1
index 936e244f5aba..3144a9ad2f6a 100644
@@ -110,7 +110,7 @@ static void nft_target_eval_bridge(const struct nft_expr *expr,
 
 	ret = target->target(skb, &xt);
 
-	if (&xt.hotdrop)
+	if (xt.hotdrop)
 		ret = NF_DROP;
 
 	switch (ret) {
Signature · 1 line
2.31.1