Browse Source

[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>
Pablo Neira Ayuso 20 years ago
parent
commit
fcda46128d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      net/ipv4/netfilter/ip_conntrack_netlink.c

+ 1 - 1
net/ipv4/netfilter/ip_conntrack_netlink.c

@@ -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