Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 6259
b: refs/heads/master
c: 88aa042
h: refs/heads/master
i:
  6257: 53ce478
  6255: 8e1748f
v: v3
  • Loading branch information
Pablo Neira authored and David S. Miller committed Aug 29, 2005
1 parent ff356a7 commit 6fc6ffc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 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: 94cd2b67641e7ddc2e6ed71d76e00116957423db
refs/heads/master: 88aa0429048d08c18f2772782588f953bbbd79be
13 changes: 7 additions & 6 deletions trunk/net/ipv4/netfilter/ip_conntrack_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -1052,13 +1052,14 @@ ctnetlink_new_conntrack(struct sock *ctnl, struct sk_buff *skb,
err = -ENOENT;
if (nlh->nlmsg_flags & NLM_F_CREATE)
err = ctnetlink_create_conntrack(cda, &otuple, &rtuple);
return err;
}
/* implicit 'else' */

/* we only allow nat config for new conntracks */
if (cda[CTA_NAT-1]) {
err = -EINVAL;
goto out_unlock;
} else {
/* we only allow nat config for new conntracks */
if (cda[CTA_NAT-1]) {
err = -EINVAL;
goto out_unlock;
}
}

/* We manipulate the conntrack inside the global conntrack table lock,
Expand Down

0 comments on commit 6fc6ffc

Please sign in to comment.