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

Commit 6403d962 authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso
Browse files

netfilter: nf_tables: indicate family when dumping set elements



Set the nfnetlink header that indicates the family of this element.

Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 3d9b1421
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2850,7 +2850,7 @@ static int nf_tables_dump_set(struct sk_buff *skb, struct netlink_callback *cb)
		goto nla_put_failure;

	nfmsg = nlmsg_data(nlh);
	nfmsg->nfgen_family = NFPROTO_UNSPEC;
	nfmsg->nfgen_family = ctx.afi->family;
	nfmsg->version      = NFNETLINK_V0;
	nfmsg->res_id       = 0;