diff options
author | Jan Engelhardt <jengelh@gmx.de> | 2007-02-07 23:10:34 (GMT) |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-02-08 20:39:18 (GMT) |
commit | e1fd0586b04d624c597834320d9e57d6f2f4b878 (patch) | |
tree | 39f83e45057d472839f1d7a9ffbf51bbfe377d8d /net/ipv4/netfilter/ipt_LOG.c | |
parent | 41f4689a7c8cd76b77864461b3c58fde8f322b2c (diff) | |
download | linux-fsl-qoriq-e1fd0586b04d624c597834320d9e57d6f2f4b878.tar.xz |
[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/ipv4/netfilter/ipt_LOG.c')
-rw-r--r-- | net/ipv4/netfilter/ipt_LOG.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/net/ipv4/netfilter/ipt_LOG.c b/net/ipv4/netfilter/ipt_LOG.c index c96de16..37778c7 100644 --- a/net/ipv4/netfilter/ipt_LOG.c +++ b/net/ipv4/netfilter/ipt_LOG.c @@ -471,8 +471,11 @@ static struct nf_logger ipt_log_logger ={ static int __init ipt_log_init(void) { - if (ipt_register_target(&ipt_log_reg)) - return -EINVAL; + int ret; + + ret = ipt_register_target(&ipt_log_reg); + if (ret < 0) + return ret; if (nf_log_register(PF_INET, &ipt_log_logger) < 0) { printk(KERN_WARNING "ipt_LOG: not logging via system console " "since somebody else already registered for PF_INET\n"); |