diff options
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/netfilter/ipt_LOG.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/ipv4/netfilter/ipt_LOG.c b/net/ipv4/netfilter/ipt_LOG.c index 5937ad150b9f..127a5e89bf14 100644 --- a/net/ipv4/netfilter/ipt_LOG.c +++ b/net/ipv4/netfilter/ipt_LOG.c | |||
@@ -479,10 +479,8 @@ static int __init ipt_log_init(void) | |||
479 | ret = xt_register_target(&ipt_log_reg); | 479 | ret = xt_register_target(&ipt_log_reg); |
480 | if (ret < 0) | 480 | if (ret < 0) |
481 | return ret; | 481 | return ret; |
482 | ret = nf_log_register(PF_INET, &ipt_log_logger); | 482 | nf_log_register(PF_INET, &ipt_log_logger); |
483 | if (ret < 0 && ret != -EEXIST) | 483 | return 0; |
484 | xt_unregister_target(&ipt_log_reg); | ||
485 | return ret; | ||
486 | } | 484 | } |
487 | 485 | ||
488 | static void __exit ipt_log_fini(void) | 486 | static void __exit ipt_log_fini(void) |