aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@gmx.de>2007-02-07 18:10:34 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2007-02-08 15:39:18 -0500
commite1fd0586b04d624c597834320d9e57d6f2f4b878 (patch)
tree39f83e45057d472839f1d7a9ffbf51bbfe377d8d /net/ipv6
parent41f4689a7c8cd76b77864461b3c58fde8f322b2c (diff)
[NETFILTER]: x_tables: fix return values for LOG/ULOG
Signed-off-by: Jan Engelhardt <jengelh@gmx.de> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/netfilter/ip6t_LOG.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/ipv6/netfilter/ip6t_LOG.c b/net/ipv6/netfilter/ip6t_LOG.c
index 33b1faa90d74..9fe0816bb21d 100644
--- a/net/ipv6/netfilter/ip6t_LOG.c
+++ b/net/ipv6/netfilter/ip6t_LOG.c
@@ -482,8 +482,11 @@ static struct nf_logger ip6t_logger = {
482 482
483static int __init ip6t_log_init(void) 483static int __init ip6t_log_init(void)
484{ 484{
485 if (ip6t_register_target(&ip6t_log_reg)) 485 int ret;
486 return -EINVAL; 486
487 ret = ip6t_register_target(&ip6t_log_reg);
488 if (ret < 0)
489 return ret;
487 if (nf_log_register(PF_INET6, &ip6t_logger) < 0) { 490 if (nf_log_register(PF_INET6, &ip6t_logger) < 0) {
488 printk(KERN_WARNING "ip6t_LOG: not logging via system console " 491 printk(KERN_WARNING "ip6t_LOG: not logging via system console "
489 "since somebody else already registered for PF_INET6\n"); 492 "since somebody else already registered for PF_INET6\n");