inet: Call skb_orphan before tproxy activates
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 27 Jun 2009 02:22:37 +0000 (19:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Jun 2009 02:22:37 +0000 (19:22 -0700)
commit71f9dacd2e4d233029e9e956ca3f79531f411827
treef625e54e95107dcbc622a6ecf64138fca3d8e0c7
parent4a27096bbe2cad4c6e78802a0d9dfe0e598a1129
inet: Call skb_orphan before tproxy activates

As transparent proxying looks up the socket early and assigns
it to the skb for later processing, we must drop any existing
socket ownership prior to that in order to distinguish between
the case where tproxy is active and where it is not.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_input.c
net/ipv6/ip6_input.c