summaryrefslogtreecommitdiff
path: root/sys/netinet6
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-03-23 00:51:00 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-03-23 00:51:00 +0000
commitf9288c242b8d801b2dcb8f62a5435bca431ad0a7 (patch)
treec348df380605447f4870f33149ffd70839ebca02 /sys/netinet6
parent33b6642daab889ee15f39d976f14ee7398f1c184 (diff)
correct arg to bcmp(). need to compare 15 bytes, not 3 bytes. sync w/kame
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/in6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c
index eab2dd8b92c..6354cd299a2 100644
--- a/sys/netinet6/in6.c
+++ b/sys/netinet6/in6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6.c,v 1.31 2002/03/14 01:27:11 millert Exp $ */
+/* $OpenBSD: in6.c,v 1.32 2002/03/23 00:50:59 itojun Exp $ */
/* $KAME: in6.c,v 1.198 2001/07/18 09:12:38 itojun Exp $ */
/*
@@ -1646,7 +1646,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 */