diff options
author | glebius <glebius@FreeBSD.org> | 2015-04-17 15:26:08 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2015-04-17 15:26:08 +0000 |
commit | 37c56fd2f815d05ff28e35043429824db263e1a0 (patch) | |
tree | c9d3166ad4bb4471a486c2dbee994759cee43666 /sys/netinet6 | |
parent | 1e22afc1d07ebae920adb834b2f9802114892018 (diff) | |
download | FreeBSD-src-37c56fd2f815d05ff28e35043429824db263e1a0.zip FreeBSD-src-37c56fd2f815d05ff28e35043429824db263e1a0.tar.gz |
Fix r281649: don't call in6_clearscope() twice.
Submitted by: ae
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/in6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c index ee197b6..be5106a 100644 --- a/sys/netinet6/in6.c +++ b/sys/netinet6/in6.c @@ -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); |