netfilter: conntrack: use a single hashtable for all namespaces
[linux-2.6-block.git] / net / netfilter / nf_nat_core.c
index 3d522715a1675a7885cc16f7fe813c580f3a4db0..d74e7167499d868f6d87e91d1d048fdcebe36bb2 100644 (file)
@@ -824,7 +824,7 @@ nfnetlink_parse_nat_setup(struct nf_conn *ct,
 static int __net_init nf_nat_net_init(struct net *net)
 {
        /* Leave them the same for the moment. */
-       net->ct.nat_htable_size = net->ct.htable_size;
+       net->ct.nat_htable_size = nf_conntrack_htable_size;
        net->ct.nat_bysource = nf_ct_alloc_hashtable(&net->ct.nat_htable_size, 0);
        if (!net->ct.nat_bysource)
                return -ENOMEM;