diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2005-12-05 21:32:14 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-12-05 21:32:14 (GMT) |
commit | 8d1ca69984ed1e5930c0537b8f606c54007d7319 (patch) | |
tree | 32565f0a3709c671988de88c2407a96499dacd6a /net/ipv4 | |
parent | e4f5c82a92c2a546a16af1614114eec19120e40a (diff) | |
download | linux-fsl-qoriq-8d1ca69984ed1e5930c0537b8f606c54007d7319.tar.xz |
[NETFILTER]: Fix incorrect argument to ip_nat_initialized() in ctnetlink
ip_nat_initialized() takes enum ip_nat_manip_type as it's second argument,
not a hook number.
Noticed and initial patch by Marcus Sundberg <marcus@ingate.com>.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/netfilter/ip_conntrack_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/ip_conntrack_netlink.c b/net/ipv4/netfilter/ip_conntrack_netlink.c index 3fce91b..70402e0 100644 --- a/net/ipv4/netfilter/ip_conntrack_netlink.c +++ b/net/ipv4/netfilter/ip_conntrack_netlink.c @@ -877,7 +877,7 @@ ctnetlink_change_status(struct ip_conntrack *ct, struct nfattr *cda[]) DEBUGP("NAT status: %lu\n", status & (IPS_NAT_MASK | IPS_NAT_DONE_MASK)); - if (ip_nat_initialized(ct, hooknum)) + if (ip_nat_initialized(ct, HOOK2MANIP(hooknum))) return -EEXIST; ip_nat_setup_info(ct, &range, hooknum); |