All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/8] Propagate error to userspace at getting
@ 2005-11-08  1:44 Pablo Neira
  2005-11-08 14:53 ` Harald Welte
  0 siblings, 1 reply; 2+ messages in thread
From: Pablo Neira @ 2005-11-08  1:44 UTC (permalink / raw)
  To: Netfilter Development Mailinglist; +Cc: Harald Welte

[-- Attachment #1: Type: text/plain, Size: 301 bytes --]

Propagate the error to userspace instead of returning -EPERM if the get
conntrack operation fails.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

-- 
The dawn of the fourth age of Linux firewalling is coming; a time of
great struggle and heroic deeds -- J.Kadlecsik got inspired by J.Morris

[-- Attachment #2: 01-return-val.patch --]
[-- Type: text/plain, Size: 650 bytes --]

Propagate the error to userspace instead of returning -EPERM if the get 
conntrack operation fails.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

Index: netfilter-2.6.14.git/net/ipv4/netfilter/ip_conntrack_netlink.c
===================================================================
--- netfilter-2.6.14.git.orig/net/ipv4/netfilter/ip_conntrack_netlink.c	2005-11-06 19:03:46.000000000 +0100
+++ netfilter-2.6.14.git/net/ipv4/netfilter/ip_conntrack_netlink.c	2005-11-06 19:03:48.000000000 +0100
@@ -808,7 +808,7 @@ ctnetlink_get_conntrack(struct sock *ctn
 free:
 	kfree_skb(skb2);
 out:
-	return -1;
+	return err;
 }
 
 static inline int

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-11-08 14:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-08  1:44 [PATCH 2/8] Propagate error to userspace at getting Pablo Neira
2005-11-08 14:53 ` Harald Welte

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.