Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e839dfa authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso
Browse files

netfilter: nf_tables: set flowtable priority and hooknum field



Otherwise netlink dump sends uninitialized fields to userspace.

Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 4c87158d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;