diff options
Diffstat (limited to 'net/ipv6/udp.c')
-rw-r--r-- | net/ipv6/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index c347f3e30e2e..82ff26dd4470 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c | |||
@@ -612,7 +612,7 @@ int udpv6_sendmsg(struct kiocb *iocb, struct sock *sk, | |||
612 | daddr = NULL; | 612 | daddr = NULL; |
613 | 613 | ||
614 | if (daddr) { | 614 | if (daddr) { |
615 | if (ipv6_addr_type(daddr) == IPV6_ADDR_MAPPED) { | 615 | if (ipv6_addr_v4mapped(daddr)) { |
616 | struct sockaddr_in sin; | 616 | struct sockaddr_in sin; |
617 | sin.sin_family = AF_INET; | 617 | sin.sin_family = AF_INET; |
618 | sin.sin_port = sin6 ? sin6->sin6_port : inet->dport; | 618 | sin.sin_port = sin6 ? sin6->sin6_port : inet->dport; |