Skip to contentSkip to conversation

xtables: Fix for explicit rule flushes

PATCH New Phil Sutter 1 participant 1 message May 13, 2019 netfilter

lore
Share & tools
lore

Phil Sutter

author reviewer
#0 lore raw

PATCH 1/1 xtables: Fix for explicit rule flushes

The commit this fixes added a new parameter to __nft_rule_flush() to mark a rule flush job as implicit or not. Yet the code added to that function ignores the parameter and instead always sets batch job's 'implicit' flag to 1.

Fixes 77e6a93d5c9dc ("xtables: add and set "implict" flag on transaction objects")
---
 iptables/nft.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
iptables/nft.c +1 -1
index 3e8f2d501d0c5..f25ab032712fc 100644
@@ -1698,7 +1698,7 @@ __nft_rule_flush(struct nft_handle *h, const char *table,
 		return;
 	}
 
-	obj->implicit = 1;
+	obj->implicit = implicit;
 }
 
 int nft_rule_flush(struct nft_handle *h, const char *chain, const char *table,
Signature · 1 line
2.21.0