diff options
author | Phil Sutter <phil@nwl.cc> | 2019-08-20 18:20:53 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2019-11-25 23:30:52 +0100 |
commit | 01d9357f684e4af8142b77f52529e2e6a5ce159b (patch) | |
tree | ade97e0c35df1085138bb6ed88881834dfd63a25 /iptables/nft.c | |
parent | d4d319cb0afdce06fb5e3fad5fe1cff4232bdbd6 (diff) |
nft: family_ops: Pass nft_handle to 'rule_find' callback
In order to prepare for rules containing set references, nft handle has
to be passed to nft_rule_to_iptables_command_state() in order to let it
access the set in cache.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/nft.c')
-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 e31f2834..387aada9 100644 --- a/iptables/nft.c +++ b/iptables/nft.c @@ -1907,7 +1907,7 @@ nft_rule_find(struct nft_handle *h, struct nftnl_chain *c, void *data, int rulen r = nftnl_rule_iter_next(iter); while (r != NULL) { - found = h->ops->rule_find(h->ops, r, data); + found = h->ops->rule_find(h, r, data); if (found) break; r = nftnl_rule_iter_next(iter); |