Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98829
b: refs/heads/master
c: 6b69fe0
h: refs/heads/master
i:
  98827: e76e9ad
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Jul 9, 2008
1 parent db985c4 commit 286791d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 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: 32e8d4948bb0b5f3f0ac5cdb71d0ac8e305b29a5
refs/heads/master: 6b69fe0c73c0f5a8dacf8f889db3cc9adee53649
10 changes: 8 additions & 2 deletions trunk/net/netfilter/nf_conntrack_proto_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -844,9 +844,15 @@ static int tcp_packet(struct nf_conn *ct,
/* Attempt to reopen a closed/aborted connection.
* Delete this connection and look up again. */
write_unlock_bh(&tcp_lock);
if (del_timer(&ct->timeout))
/* Only repeat if we can actually remove the timer.
* Destruction may already be in progress in process
* context and we must give it a chance to terminate.
*/
if (del_timer(&ct->timeout)) {
ct->timeout.function((unsigned long)ct);
return -NF_REPEAT;
return -NF_REPEAT;
}
return -NF_DROP;
}
/* Fall through */
case TCP_CONNTRACK_IGNORE:
Expand Down

0 comments on commit 286791d

Please sign in to comment.