diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2005-11-09 16:03:26 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-11-09 16:03:26 -0500 |
commit | fcda46128d5cb50075339b79ce585ab767337e9e (patch) | |
tree | 38411c71609c071b697d3b3738a9c7df3e40a8bb /net | |
parent | fe902a91ff427af7dbf20e7c196623b2a4eade13 (diff) |
[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>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/netfilter/ip_conntrack_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/ip_conntrack_netlink.c b/net/ipv4/netfilter/ip_conntrack_netlink.c index cfc5487e627a..7fe745659642 100644 --- a/net/ipv4/netfilter/ip_conntrack_netlink.c +++ b/net/ipv4/netfilter/ip_conntrack_netlink.c | |||
@@ -802,7 +802,7 @@ ctnetlink_get_conntrack(struct sock *ctnl, struct sk_buff *skb, | |||
802 | free: | 802 | free: |
803 | kfree_skb(skb2); | 803 | kfree_skb(skb2); |
804 | out: | 804 | out: |
805 | return -1; | 805 | return err; |
806 | } | 806 | } |
807 | 807 | ||
808 | static inline int | 808 | static inline int |