[NETNS]: Process INET socket layer in the correct namespace.
[deliverable/linux.git] / net / ipv4 / inet_connection_sock.c
index f9c5c4def1baba5a910d9f7f6563ea67e03f0a8e..d13c5f12bb329f2cf79b4954cec15ee2d57d8ef8 100644 (file)
@@ -333,7 +333,7 @@ struct dst_entry* inet_csk_route_req(struct sock *sk,
                                         .dport = ireq->rmt_port } } };
 
        security_req_classify_flow(req, &fl);
-       if (ip_route_output_flow(&init_net, &rt, &fl, sk, 0)) {
+       if (ip_route_output_flow(sk->sk_net, &rt, &fl, sk, 0)) {
                IP_INC_STATS_BH(IPSTATS_MIB_OUTNOROUTES);
                return NULL;
        }
This page took 0.024794 seconds and 5 git commands to generate.