diff options
author | Patrick McHardy <kaber@trash.net> | 2008-01-31 06:56:04 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-31 22:27:28 -0500 |
commit | d44caf88e8f7906a4f99dbfc92108d660cfcd280 (patch) | |
tree | 96f13b0fbd44aff949ec6dc41c0a3db8336fbf18 /net | |
parent | ecb6f85e11627a0fb26a7e2db0d3603c0d602937 (diff) |
[NETFILTER]: nf_nat: remove double bysource hash initialization
The hash table is already initialized by nf_ct_alloc_hashtable().
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/netfilter/nf_nat_core.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/ipv4/netfilter/nf_nat_core.c b/net/ipv4/netfilter/nf_nat_core.c index e53ae1ef8f5e..c07575dc702c 100644 --- a/net/ipv4/netfilter/nf_nat_core.c +++ b/net/ipv4/netfilter/nf_nat_core.c | |||
@@ -654,10 +654,6 @@ static int __init nf_nat_init(void) | |||
654 | rcu_assign_pointer(nf_nat_protos[IPPROTO_ICMP], &nf_nat_protocol_icmp); | 654 | rcu_assign_pointer(nf_nat_protos[IPPROTO_ICMP], &nf_nat_protocol_icmp); |
655 | write_unlock_bh(&nf_nat_lock); | 655 | write_unlock_bh(&nf_nat_lock); |
656 | 656 | ||
657 | for (i = 0; i < nf_nat_htable_size; i++) { | ||
658 | INIT_HLIST_HEAD(&bysource[i]); | ||
659 | } | ||
660 | |||
661 | /* Initialize fake conntrack so that NAT will skip it */ | 657 | /* Initialize fake conntrack so that NAT will skip it */ |
662 | nf_conntrack_untracked.status |= IPS_NAT_DONE_MASK; | 658 | nf_conntrack_untracked.status |= IPS_NAT_DONE_MASK; |
663 | 659 | ||