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

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
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment