ipvs: use skb_to_full_sk() helper
authorEric Dumazet <edumazet@google.com>
Thu, 12 Nov 2015 17:14:12 +0000 (09:14 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Nov 2015 23:39:48 +0000 (18:39 -0500)
commit340c78e5906264c42f9415005c7ba0a4efcfe735
treee64ff2741b4a17fb4e691b11f43144b641379246
parent00fd38d938db3f1ab1c486549afc450cb7e751b1
ipvs: use skb_to_full_sk() helper

SYNACK packets might be attached to request sockets.

Use skb_to_full_sk() helper to avoid illegal accesses to
inet_sk(skb->sk)

Fixes: ca6fb0651883 ("tcp: attach SYNACK messages to request sockets instead of listener")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Sander Eikelenboom <linux@eikelenboom.it>
Acked-by: Julian Anastasov <ja@ssi.bg>
Acked-by: Simon Horman <horms@verge.net.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/ipvs/ip_vs_core.c