diff options
author | Phil Sutter <phil@nwl.cc> | 2019-05-13 18:32:37 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-05-20 20:57:40 +0200 |
commit | bb63d9af216a04f91f584e161e97a37b4e6fa096 (patch) | |
tree | 126ab08b2f9a9d33a15a6603d99832e72806e7e0 /iptables | |
parent | f6ad231d698c7c091371264d8d1881cbb9cf0ba1 (diff) |
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")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables')
-rw-r--r-- | iptables/nft.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft.c b/iptables/nft.c index 288ada4a..b9268b63 100644 --- a/iptables/nft.c +++ b/iptables/nft.c @@ -1778,7 +1778,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, |