Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2fdf1faa authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller
Browse files

[NETFILTER]: Don't use conntrack entry after dropping the reference

parent 266c8543
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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");