]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/netfilter/xt_conntrack.c
netfilter: conntrack: remove prealloc support
[mirror_ubuntu-artful-kernel.git] / net / netfilter / xt_conntrack.c
index c0fb217bc64969bd0da2c656d4418f8c80b29d14..39cf1d019240e61f504bc8ced96a63c41c9bd839 100644 (file)
@@ -172,12 +172,11 @@ conntrack_mt(const struct sk_buff *skb, struct xt_action_param *par,
 
        ct = nf_ct_get(skb, &ctinfo);
 
-       if (ct) {
-               if (nf_ct_is_untracked(ct))
-                       statebit = XT_CONNTRACK_STATE_UNTRACKED;
-               else
-                       statebit = XT_CONNTRACK_STATE_BIT(ctinfo);
-       } else
+       if (ct)
+               statebit = XT_CONNTRACK_STATE_BIT(ctinfo);
+       else if (ctinfo == IP_CT_UNTRACKED)
+               statebit = XT_CONNTRACK_STATE_UNTRACKED;
+       else
                statebit = XT_CONNTRACK_STATE_INVALID;
 
        if (info->match_flags & XT_CONNTRACK_STATE) {