3rd arg to bcmp() was wrong. From: David Wang <dsw@juniper.net>
Obtained from: KAME MFC after: 1 week
This commit is contained in:
parent
08f8120ab2
commit
ddebd6780c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=93128
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user