aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/netfilter/ipt_LOG.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/net/ipv4/netfilter/ipt_LOG.c b/net/ipv4/netfilter/ipt_LOG.c
index 2fa36618c517..a42c5cd968b1 100644
--- a/net/ipv4/netfilter/ipt_LOG.c
+++ b/net/ipv4/netfilter/ipt_LOG.c
@@ -477,14 +477,10 @@ static int __init ipt_log_init(void)
477 ret = xt_register_target(&ipt_log_reg); 477 ret = xt_register_target(&ipt_log_reg);
478 if (ret < 0) 478 if (ret < 0)
479 return ret; 479 return ret;
480 if (nf_log_register(PF_INET, &ipt_log_logger) < 0) { 480 ret = nf_log_register(PF_INET, &ipt_log_logger);
481 printk(KERN_WARNING "ipt_LOG: not logging via system console " 481 if (ret < 0 && ret != -EEXIST)
482 "since somebody else already registered for PF_INET\n"); 482 xt_unregister_target(&ipt_log_reg);
483 /* we cannot make module load fail here, since otherwise 483 return ret;
484 * iptables userspace would abort */
485 }
486
487 return 0;
488} 484}
489 485
490static void __exit ipt_log_fini(void) 486static void __exit ipt_log_fini(void)