mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
[NETFILTER] ctnetlink: propagate error instaed of returning -EPERM
Propagate the error to userspace instead of returning -EPERM if the get conntrack operation fails. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Harald Welte <laforge@netfilter.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
fe902a91ff
commit
fcda46128d
|
|
@ -802,7 +802,7 @@ ctnetlink_get_conntrack(struct sock *ctnl, struct sk_buff *skb,
|
|||
free:
|
||||
kfree_skb(skb2);
|
||||
out:
|
||||
return -1;
|
||||
return err;
|
||||
}
|
||||
|
||||
static inline int
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user