Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211094
b: refs/heads/master
c: d485d50
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Sep 22, 2010
1 parent a5fa5cd commit 51abd1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 3d13008e7345fa7a79d8f6438150dc15d6ba6e9d
refs/heads/master: d485d500cf6b13a33bc7a6c09091deea7ea603ca
6 changes: 5 additions & 1 deletion trunk/net/netfilter/nf_tproxy_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ nf_tproxy_destructor(struct sk_buff *skb)
int
nf_tproxy_assign_sock(struct sk_buff *skb, struct sock *sk)
{
if (inet_sk(sk)->transparent) {
bool transparent = (sk->sk_state == TCP_TIME_WAIT) ?
inet_twsk(sk)->tw_transparent :
inet_sk(sk)->transparent;

if (transparent) {
skb_orphan(skb);
skb->sk = sk;
skb->destructor = nf_tproxy_destructor;
Expand Down

0 comments on commit 51abd1e

Please sign in to comment.