]> err.no Git - linux-2.6/commitdiff
[NETFILTER] ctnetlink: propagate error instaed of returning -EPERM
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 9 Nov 2005 21:03:26 +0000 (13:03 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Nov 2005 21:03:26 +0000 (13:03 -0800)
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>
net/ipv4/netfilter/ip_conntrack_netlink.c

index cfc5487e627acf7d6d76e3108ee9f46721d8d5a2..7fe74565964243af54eec11c6babc5bc77c96c69 100644 (file)
@@ -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