summaryrefslogtreecommitdiffstats
path: root/net/netfilter
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2019-01-08 23:18:58 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2019-01-08 23:31:18 +0100
commit715849ab31f8e57bbad84cc6c38912aeba6beb21 (patch)
tree42b5fa8381fc7c98b1cc4162a874de06ff8fc95a /net/netfilter
parentb91d9036883793122cf6575ca4dfbfbdd201a83d (diff)
downloadblackbird-obmc-linux-715849ab31f8e57bbad84cc6c38912aeba6beb21.tar.gz
blackbird-obmc-linux-715849ab31f8e57bbad84cc6c38912aeba6beb21.zip
netfilter: nf_tables: selective rule dump needs table to be specified
Table needs to be specified for selective rule dumps per chain. Fixes: 241faeceb849c ("netfilter: nf_tables: Speed up selective rule dumps") Reported-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter')
-rw-r--r--net/netfilter/nf_tables_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c
index dcea979423bc..fb07f6cfc719 100644
--- a/net/netfilter/nf_tables_api.c
+++ b/net/netfilter/nf_tables_api.c
@@ -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,
OpenPOWER on IntegriCloud