diff options
Diffstat (limited to 'net/ipv6/ipv6_sockglue.c')
-rw-r--r-- | net/ipv6/ipv6_sockglue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ipv6_sockglue.c b/net/ipv6/ipv6_sockglue.c index 6b038aa72e88..74254fccbcc8 100644 --- a/net/ipv6/ipv6_sockglue.c +++ b/net/ipv6/ipv6_sockglue.c | |||
@@ -249,7 +249,7 @@ static int do_ipv6_setsockopt(struct sock *sk, int level, int optname, | |||
249 | } | 249 | } |
250 | 250 | ||
251 | if (ipv6_only_sock(sk) || | 251 | if (ipv6_only_sock(sk) || |
252 | !(ipv6_addr_type(&np->daddr) & IPV6_ADDR_MAPPED)) { | 252 | !ipv6_addr_v4mapped(&np->daddr)) { |
253 | retv = -EADDRNOTAVAIL; | 253 | retv = -EADDRNOTAVAIL; |
254 | break; | 254 | break; |
255 | } | 255 | } |