mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-28 16:52:18 +00:00
netfilter: nfnetlink: Report extack policy errors for batched ops
The nftables batch processing does not currently populate extack with policy errors. Fix this by passing extack when parsing batch messages. Signed-off-by: Donald Hunter <donald.hunter@gmail.com> Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
544070db6c
commit
3f54959628
@ -517,7 +517,7 @@ static void nfnetlink_rcv_batch(struct sk_buff *skb, struct nlmsghdr *nlh,
|
||||
err = nla_parse_deprecated(cda,
|
||||
ss->cb[cb_id].attr_count,
|
||||
attr, attrlen,
|
||||
ss->cb[cb_id].policy, NULL);
|
||||
ss->cb[cb_id].policy, &extack);
|
||||
if (err < 0)
|
||||
goto ack;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user