]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
netfilter: nf_ct_reasm: fix per-netns sysctl initialization
authorMichal Kubeček <mkubecek@suse.cz>
Tue, 12 Feb 2013 23:46:09 +0000 (23:46 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 13 Feb 2013 19:46:06 +0000 (20:46 +0100)
Adjusting of data pointers in net/netfilter/nf_conntrack_frag6_*
sysctl table for other namespaces points to wrong netns_frags
structure and has reversed order of entries.

Problem introduced by commit c038a767cd69 in 3.7-rc1

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv6/netfilter/nf_conntrack_reasm.c

index 3dacecc9906597e3f44fa9475dda0afb8f4981c2..0156d07d732fdc7e486ef85fae190f470ce02063 100644 (file)
@@ -97,9 +97,9 @@ static int nf_ct_frag6_sysctl_register(struct net *net)
                if (table == NULL)
                        goto err_alloc;
 
-               table[0].data = &net->ipv6.frags.high_thresh;
-               table[1].data = &net->ipv6.frags.low_thresh;
-               table[2].data = &net->ipv6.frags.timeout;
+               table[0].data = &net->nf_frag.frags.timeout;
+               table[1].data = &net->nf_frag.frags.low_thresh;
+               table[2].data = &net->nf_frag.frags.high_thresh;
        }
 
        hdr = register_net_sysctl(net, "net/netfilter", table);