summaryrefslogtreecommitdiff
path: root/net/ipv6
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-03-16 07:12:13 +0300
committerDavid S. Miller <davem@davemloft.net>2015-03-16 22:55:29 +0300
commitf7e4eb03f9d9e2522bdd5107f37f9cf1af0bf0fa (patch)
treeb861e213b81c976dbe2fbae042eeed04aab55007 /net/ipv6
parent1d0ab253872cdd3d8e7913f59c266c7fd01771d0 (diff)
downloadlinux-f7e4eb03f9d9e2522bdd5107f37f9cf1af0bf0fa.tar.xz
inet: ip early demux should avoid request sockets
When a request socket is created, we do not cache ip route dst entry, like for timewait sockets. Let's use sk_fullsock() helper. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/tcp_ipv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index d89f028dc8c4..e4761b22307b 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -1583,7 +1583,7 @@ static void tcp_v6_early_demux(struct sk_buff *skb)
if (sk) {
skb->sk = sk;
skb->destructor = sock_edemux;
- if (sk->sk_state != TCP_TIME_WAIT) {
+ if (sk_fullsock(sk)) {
struct dst_entry *dst = sk->sk_rx_dst;
if (dst)