From 01d9357f684e4af8142b77f52529e2e6a5ce159b Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 20 Aug 2019 18:20:53 +0200 Subject: 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 Acked-by: Pablo Neira Ayuso --- iptables/nft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iptables/nft.c') 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); -- cgit v1.2.3