Skip to content
Browse files

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

  • Loading branch information...
1 parent d543d36 commit 17165e74688d5a3e91863ba4c77bcae9c24f31fb itojun committed Mar 23, 2002
Showing with 2 additions and 2 deletions.
  1. +2 −2 kame/sys/netinet6/scope6.c
View
4 kame/sys/netinet6/scope6.c
@@ -1,4 +1,4 @@
-/* $KAME: scope6.c,v 1.29 2002/02/26 03:31:43 jinmei Exp $ */
+/* $KAME: scope6.c,v 1.30 2002/03/23 00:30:08 itojun Exp $ */
/*
* Copyright (C) 2000 WIDE Project.
@@ -250,7 +250,7 @@ in6_addrscope(addr)
* Regard loopback and unspecified addresses as global, since
* they have no ambiguity.
*/
- if (bcmp(&in6addr_loopback, addr, sizeof(addr) - 1) == 0) {
+ if (bcmp(&in6addr_loopback, addr, sizeof(*addr) - 1) == 0) {
if (addr->s6_addr[15] == 1) /* loopback */
return IPV6_ADDR_SCOPE_LINKLOCAL;
if (addr->s6_addr[15] == 0) /* unspecified */

0 comments on commit 17165e7

Please sign in to comment.
Something went wrong with that request. Please try again.