Commit 715849ab authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso
Browse files

netfilter: nf_tables: selective rule dump needs table to be specified



Table needs to be specified for selective rule dumps per chain.

Fixes: 241faece ("netfilter: nf_tables: Speed up selective rule dumps")
Reported-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent b91d9036
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2350,7 +2350,7 @@ static int nf_tables_dump_rules(struct sk_buff *skb,
		if (ctx && ctx->table && strcmp(ctx->table, table->name) != 0)
			continue;

		if (ctx && ctx->chain) {
		if (ctx && ctx->table && ctx->chain) {
			struct rhlist_head *list, *tmp;

			list = rhltable_lookup(&table->chains_ht, ctx->chain,