projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b91d903
)
netfilter: nf_tables: selective rule dump needs table to be specified
author
Pablo Neira Ayuso
<pablo@netfilter.org>
Tue, 8 Jan 2019 22:18:58 +0000
(23:18 +0100)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Tue, 8 Jan 2019 22:31:18 +0000
(23:31 +0100)
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>
net/netfilter/nf_tables_api.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nf_tables_api.c
b/net/netfilter/nf_tables_api.c
index dcea979423bca2518402fc5b0b10ca5b6ba2b64b..fb07f6cfc71917b13fcb7be0c4954b25f32b1a33 100644
(file)
--- 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,