tcp: use correct net ns in cookie_v4_check()

Its better to make a route lookup in appropriate namespace.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Eric Dumazet and committed by David S. Miller c4464921 ca55158c

+1 -1
+1 -1
net/ipv4/syncookies.c
··· 347 347 { .sport = th->dest, 348 348 .dport = th->source } } }; 349 349 security_req_classify_flow(req, &fl); 350 - if (ip_route_output_key(&init_net, &rt, &fl)) { 350 + if (ip_route_output_key(sock_net(sk), &rt, &fl)) { 351 351 reqsk_free(req); 352 352 goto out; 353 353 }