aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2005-11-09 16:03:26 -0500
committerDavid S. Miller <davem@davemloft.net>2005-11-09 16:03:26 -0500
commitfcda46128d5cb50075339b79ce585ab767337e9e (patch)
tree38411c71609c071b697d3b3738a9c7df3e40a8bb /net
parentfe902a91ff427af7dbf20e7c196623b2a4eade13 (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.c2
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,
802free: 802free:
803 kfree_skb(skb2); 803 kfree_skb(skb2);
804out: 804out:
805 return -1; 805 return err;
806} 806}
807 807
808static inline int 808static inline int