Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288527
b: refs/heads/master
c: a16a164
h: refs/heads/master
i:
  288525: ebb74d6
  288523: 16fca8f
  288519: 03fdffb
  288511: c86ec1a
v: v3
  • Loading branch information
Pablo Neira Ayuso authored and David S. Miller committed Mar 17, 2012
1 parent c006743 commit 19f01ef
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c577923756b7fe9071f28a76b66b83b306d1d001
refs/heads/master: a16a1647fa6b6783c2e91623e72e86f0c2adac5e
23 changes: 12 additions & 11 deletions trunk/net/netfilter/nf_conntrack_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -943,20 +943,21 @@ ctnetlink_del_conntrack(struct sock *ctnl, struct sk_buff *skb,
}
}

if (nf_conntrack_event_report(IPCT_DESTROY, ct,
NETLINK_CB(skb).pid,
nlmsg_report(nlh)) < 0) {
if (del_timer(&ct->timeout)) {
if (nf_conntrack_event_report(IPCT_DESTROY, ct,
NETLINK_CB(skb).pid,
nlmsg_report(nlh)) < 0) {
nf_ct_delete_from_lists(ct);
/* we failed to report the event, try later */
nf_ct_insert_dying_list(ct);
nf_ct_put(ct);
return 0;
}
/* death_by_timeout would report the event again */
set_bit(IPS_DYING_BIT, &ct->status);
nf_ct_delete_from_lists(ct);
/* we failed to report the event, try later */
nf_ct_insert_dying_list(ct);
nf_ct_put(ct);
return 0;
}

/* death_by_timeout would report the event again */
set_bit(IPS_DYING_BIT, &ct->status);

nf_ct_kill(ct);
nf_ct_put(ct);

return 0;
Expand Down

0 comments on commit 19f01ef

Please sign in to comment.