[NETFILTER]: Don't use conntrack entry after dropping the reference
authorPatrick McHardy <kaber@trash.net>
Mon, 5 Dec 2005 21:38:16 +0000 (13:38 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Dec 2005 21:38:16 +0000 (13:38 -0800)
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ip_conntrack_netlink.c

index d058ac41bfd3ab2619161ef8dac47c3563333a55..91fe8f2e38ffe500a2f72c6b3c6f69c3a7e548c6 100644 (file)
@@ -728,11 +728,9 @@ ctnetlink_del_conntrack(struct sock *ctnl, struct sk_buff *skb,
                        return -ENOENT;
                }
        }       
-       if (del_timer(&ct->timeout)) {
-               ip_conntrack_put(ct);
+       if (del_timer(&ct->timeout))
                ct->timeout.function((unsigned long)ct);
-               return 0;
-       }
+
        ip_conntrack_put(ct);
        DEBUGP("leaving\n");