From: Pablo Neira Ayuso Date: Fri, 19 Jan 2018 11:59:03 +0000 (+0100) Subject: netfilter: nf_tables: set flowtable priority and hooknum field X-Git-Tag: v4.19~1702^2~108^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0e839dfaf100266b08c0db38f13a77746cd742c2;p=platform%2Fkernel%2Flinux-rpi3.git netfilter: nf_tables: set flowtable priority and hooknum field Otherwise netlink dump sends uninitialized fields to userspace. Signed-off-by: Pablo Neira Ayuso --- diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index 1addc40..f87314c 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;