diff options
author | ume <ume@FreeBSD.org> | 2002-03-25 10:12:51 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2002-03-25 10:12:51 +0000 |
commit | 37ae60983d7f0be60fc44c588994df048da43884 (patch) | |
tree | d28438a23d1ad88840d60345d7241b8ea222743d /sys/netinet6 | |
parent | 582c3c2fe18b20b12a7153274630a7cbf334a3eb (diff) | |
download | FreeBSD-src-37ae60983d7f0be60fc44c588994df048da43884.zip FreeBSD-src-37ae60983d7f0be60fc44c588994df048da43884.tar.gz |
3rd arg to bcmp() was wrong. From: David Wang <dsw@juniper.net>
Obtained from: KAME
MFC after: 1 week
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/scope6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/scope6.c b/sys/netinet6/scope6.c index 09bba0c..0c32da8 100644 --- a/sys/netinet6/scope6.c +++ b/sys/netinet6/scope6.c @@ -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 */ |