diff options
Diffstat (limited to 'net/ipv4/af_inet.c')
-rw-r--r-- | net/ipv4/af_inet.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index 8db39f7e3bf0..1144900d37f6 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c | |||
@@ -644,7 +644,7 @@ int inet_getname(struct socket *sock, struct sockaddr *uaddr, | |||
644 | sin->sin_port = inet->dport; | 644 | sin->sin_port = inet->dport; |
645 | sin->sin_addr.s_addr = inet->daddr; | 645 | sin->sin_addr.s_addr = inet->daddr; |
646 | } else { | 646 | } else { |
647 | __u32 addr = inet->rcv_saddr; | 647 | __be32 addr = inet->rcv_saddr; |
648 | if (!addr) | 648 | if (!addr) |
649 | addr = inet->saddr; | 649 | addr = inet->saddr; |
650 | sin->sin_port = inet->sport; | 650 | sin->sin_port = inet->sport; |
@@ -995,8 +995,8 @@ static int inet_sk_reselect_saddr(struct sock *sk) | |||
995 | struct inet_sock *inet = inet_sk(sk); | 995 | struct inet_sock *inet = inet_sk(sk); |
996 | int err; | 996 | int err; |
997 | struct rtable *rt; | 997 | struct rtable *rt; |
998 | __u32 old_saddr = inet->saddr; | 998 | __be32 old_saddr = inet->saddr; |
999 | __u32 new_saddr; | 999 | __be32 new_saddr; |
1000 | __be32 daddr = inet->daddr; | 1000 | __be32 daddr = inet->daddr; |
1001 | 1001 | ||
1002 | if (inet->opt && inet->opt->srr) | 1002 | if (inet->opt && inet->opt->srr) |