diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-03-29 21:28:23 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-04-01 16:02:09 -0700 |
commit | 5dda8d1fc44f3ab37c0e5c8e980254b6703ef8b2 (patch) | |
tree | 429776be32aa4eb465acfac71d908c5f5905b386 /include | |
parent | 9e9b5dce350fd6f34c2c6b7440951481fb594a29 (diff) | |
download | kernel-crypto-5dda8d1fc44f3ab37c0e5c8e980254b6703ef8b2.tar.gz kernel-crypto-5dda8d1fc44f3ab37c0e5c8e980254b6703ef8b2.tar.xz kernel-crypto-5dda8d1fc44f3ab37c0e5c8e980254b6703ef8b2.zip |
netfilter: ctnetlink: fix reliable event delivery if message building fails
[ Upstream commit 37b7ef7203240b3aba577bb1ff6765fe15225976 ]
This patch fixes a bug that allows to lose events when reliable
event delivery mode is used, ie. if NETLINK_BROADCAST_SEND_ERROR
and NETLINK_RECV_NO_ENOBUFS socket options are set.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netfilter/nfnetlink.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netfilter/nfnetlink.h b/include/linux/netfilter/nfnetlink.h index 49d321f3ccd..264d83dbedf 100644 --- a/include/linux/netfilter/nfnetlink.h +++ b/include/linux/netfilter/nfnetlink.h @@ -76,7 +76,7 @@ extern int nfnetlink_subsys_unregister(const struct nfnetlink_subsystem *n); extern int nfnetlink_has_listeners(unsigned int group); extern int nfnetlink_send(struct sk_buff *skb, u32 pid, unsigned group, int echo, gfp_t flags); -extern void nfnetlink_set_err(u32 pid, u32 group, int error); +extern int nfnetlink_set_err(u32 pid, u32 group, int error); extern int nfnetlink_unicast(struct sk_buff *skb, u_int32_t pid, int flags); extern void nfnl_lock(void); |