]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/ipv4/netfilter/nf_dup_ipv4.c
netfilter: reset netfilter state when duplicating packet
[mirror_ubuntu-artful-kernel.git] / net / ipv4 / netfilter / nf_dup_ipv4.c
index cf986e1c7bbd2e2383ba37cf54fae87fccfdc72c..a981ef7151caadc150896eafcca129f2a1ca532e 100644 (file)
@@ -68,7 +68,7 @@ void nf_dup_ipv4(struct net *net, struct sk_buff *skb, unsigned int hooknum,
 
 #if IS_ENABLED(CONFIG_NF_CONNTRACK)
        /* Avoid counting cloned packets towards the original connection. */
-       nf_conntrack_put(skb->nfct);
+       nf_reset(skb);
        skb->nfct     = &nf_ct_untracked_get()->ct_general;
        skb->nfctinfo = IP_CT_NEW;
        nf_conntrack_get(skb->nfct);