3rd arg to bcmp() was wrong. From: David Wang <dsw@juniper.net>

Obtained from:	KAME
MFC after:	1 week
This commit is contained in:
Hajimu UMEMOTO 2002-03-25 10:12:51 +00:00
parent 08f8120ab2
commit ddebd6780c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=93128

View File

@ -222,7 +222,7 @@ struct in6_addr *addr;
}
}
if (bcmp(&in6addr_loopback, addr, sizeof(addr) - 1) == 0) {
if (bcmp(&in6addr_loopback, addr, sizeof(*addr) - 1) == 0) {
if (addr->s6_addr8[15] == 1) /* loopback */
return IPV6_ADDR_SCOPE_NODELOCAL;
if (addr->s6_addr8[15] == 0) /* unspecified */