netfilter: use skb_to_full_sk in ip_route_me_harder
authorFlorian Westphal <fw@strlen.de>
Fri, 17 Feb 2017 07:39:28 +0000 (08:39 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 28 Feb 2017 11:49:36 +0000 (12:49 +0100)
commit29e09229d9f26129a39462fae0ddabc4d9533989
tree4d5e5d45ffea14cbcba7a9751abfd13f3c8ccfa8
parent2f44f75257d57f0d5668dba3a6ada0f4872132c9
netfilter: use skb_to_full_sk in ip_route_me_harder

inet_sk(skb->sk) is illegal in case skb is attached to request socket.

Fixes: ca6fb0651883 ("tcp: attach SYNACK messages to request sockets instead of listener")
Reported by: Daniel J Blueman <daniel@quora.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
Tested-by: Daniel J Blueman <daniel@quora.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter.c