Fix r281649: don't call in6_clearscope() twice.

Submitted by:	ae
This commit is contained in:
glebius 2015-04-17 15:26:08 +00:00
parent 1e22afc1d0
commit 37c56fd2f8

View File

@ -1696,7 +1696,7 @@ in6_ifhasaddr(struct ifnet *ifp, struct in6_addr *addr)
struct in6_ifaddr *ia6;
in6 = *addr;
if (in6_clearscope(&in6) || in6_clearscope(&in6))
if (in6_clearscope(&in6))
return (0);
in6_setscope(&in6, ifp, NULL);