[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 <[EMAIL PROTECTED]>
Signed-off-by: Harald Welte <[EMAIL PROTECTED]>

---
commit 9cdec7d1acde0d0a9e15ba39b749d38e94179af4
tree 88656440f0febe98c9cea2792273b288bdc49dcf
parent 6ec2ee65ba91c23a2d36d11a9d92a435b30e56db
author Pablo Neira Ayuso <[EMAIL PROTECTED]> Tue, 08 Nov 2005 15:53:14 +0100
committer Harald Welte <[EMAIL PROTECTED]> Tue, 08 Nov 2005 15:53:14 +0100

 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
--- a/net/ipv4/netfilter/ip_conntrack_netlink.c
+++ b/net/ipv4/netfilter/ip_conntrack_netlink.c
@@ -808,7 +808,7 @@ ctnetlink_get_conntrack(struct sock *ctn
 free:
        kfree_skb(skb2);
 out:
-       return -1;
+       return err;
 }
 
 static inline int
-- 
- Harald Welte <[EMAIL PROTECTED]>                 http://netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie

Attachment: pgpcRwk1hD586.pgp
Description: PGP signature

Reply via email to