aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/af_inet.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/af_inet.c')
-rw-r--r--net/ipv4/af_inet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index 44f5ce1fbfa4..a9e241cdc5b2 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -446,7 +446,7 @@ int inet_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
446 if (addr_len < sizeof(struct sockaddr_in)) 446 if (addr_len < sizeof(struct sockaddr_in))
447 goto out; 447 goto out;
448 448
449 chk_addr_ret = inet_addr_type(&init_net, addr->sin_addr.s_addr); 449 chk_addr_ret = inet_addr_type(sk->sk_net, addr->sin_addr.s_addr);
450 450
451 /* Not specified by any standard per-se, however it breaks too 451 /* Not specified by any standard per-se, however it breaks too
452 * many applications when removed. It is unfortunate since 452 * many applications when removed. It is unfortunate since
@@ -1114,7 +1114,7 @@ int inet_sk_rebuild_header(struct sock *sk)
1114 }; 1114 };
1115 1115
1116 security_sk_classify_flow(sk, &fl); 1116 security_sk_classify_flow(sk, &fl);
1117 err = ip_route_output_flow(&init_net, &rt, &fl, sk, 0); 1117 err = ip_route_output_flow(sk->sk_net, &rt, &fl, sk, 0);
1118} 1118}
1119 if (!err) 1119 if (!err)
1120 sk_setup_caps(sk, &rt->u.dst); 1120 sk_setup_caps(sk, &rt->u.dst);