Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46966
b: refs/heads/master
c: e1fd058
h: refs/heads/master
v: v3
  • Loading branch information
Jan Engelhardt authored and David S. Miller committed Feb 8, 2007
1 parent 3654fe5 commit d8c0b5c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 41f4689a7c8cd76b77864461b3c58fde8f322b2c
refs/heads/master: e1fd0586b04d624c597834320d9e57d6f2f4b878
7 changes: 5 additions & 2 deletions trunk/net/ipv4/netfilter/ipt_LOG.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
7 changes: 4 additions & 3 deletions trunk/net/ipv4/netfilter/ipt_ULOG.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ static struct nf_logger ipt_ulog_logger = {

static int __init ipt_ulog_init(void)
{
int i;
int ret, i;

DEBUGP("ipt_ULOG: init module\n");

Expand All @@ -400,9 +400,10 @@ static int __init ipt_ulog_init(void)
if (!nflognl)
return -ENOMEM;

if (ipt_register_target(&ipt_ulog_reg) != 0) {
ret = ipt_register_target(&ipt_ulog_reg);
if (ret < 0) {
sock_release(nflognl->sk_socket);
return -EINVAL;
return ret;
}
if (nflog)
nf_log_register(PF_INET, &ipt_ulog_logger);
Expand Down
7 changes: 5 additions & 2 deletions trunk/net/ipv6/netfilter/ip6t_LOG.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,11 @@ static struct nf_logger ip6t_logger = {

static int __init ip6t_log_init(void)
{
if (ip6t_register_target(&ip6t_log_reg))
return -EINVAL;
int ret;

ret = ip6t_register_target(&ip6t_log_reg);
if (ret < 0)
return ret;
if (nf_log_register(PF_INET6, &ip6t_logger) < 0) {
printk(KERN_WARNING "ip6t_LOG: not logging via system console "
"since somebody else already registered for PF_INET6\n");
Expand Down

0 comments on commit d8c0b5c

Please sign in to comment.