summaryrefslogtreecommitdiffstats
path: root/net/netfilter/nf_tables_api.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso2018-01-19 12:59:03 +0100
committerPablo Neira Ayuso2018-01-19 14:11:52 +0100
commit0e839dfaf100266b08c0db38f13a77746cd742c2 (patch)
tree9881823f303780e33dddf62f6fdf3119efc5ed64 /net/netfilter/nf_tables_api.c
parentnetfilter: delete /proc THIS_MODULE references (diff)
downloadkernel-qcow2-linux-0e839dfaf100266b08c0db38f13a77746cd742c2.tar.gz
kernel-qcow2-linux-0e839dfaf100266b08c0db38f13a77746cd742c2.tar.xz
kernel-qcow2-linux-0e839dfaf100266b08c0db38f13a77746cd742c2.zip
netfilter: nf_tables: set flowtable priority and hooknum field
Otherwise netlink dump sends uninitialized fields to userspace. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_tables_api.c')
-rw-r--r--net/netfilter/nf_tables_api.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c
index 1addc401ff7d..f87314c6dcc4 100644
--- a/net/netfilter/nf_tables_api.c
+++ b/net/netfilter/nf_tables_api.c
@@ -4946,6 +4946,8 @@ static int nf_tables_flowtable_parse_hook(const struct nft_ctx *ctx,
goto err1;
}
+ flowtable->hooknum = hooknum;
+ flowtable->priority = priority;
flowtable->ops = ops;
flowtable->ops_len = n;