Skip to content
Browse files

don't cast a sockaddr_in variable as sockaddr_in6.

  • Loading branch information...
1 parent e11bc4a commit 6978b98b90ac0cbfb152513cb75e72dc55afcdb4 jinmei committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 kame/kame/libinet6/getaddrinfo.c
View
6 kame/kame/libinet6/getaddrinfo.c
@@ -1,4 +1,4 @@
-/* $KAME: getaddrinfo.c,v 1.215 2005/04/14 06:22:33 suz Exp $ */
+/* $KAME: getaddrinfo.c,v 1.216 2005/05/14 13:39:11 jinmei Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -1138,8 +1138,8 @@ matchlen(src, dst)
break;
#endif
case AF_INET:
- s = (u_char *)&((struct sockaddr_in6 *)src)->sin6_addr;
- d = (u_char *)&((struct sockaddr_in6 *)dst)->sin6_addr;
+ s = (u_char *)&((struct sockaddr_in *)src)->sin_addr;
+ d = (u_char *)&((struct sockaddr_in *)dst)->sin_addr;
addrlen = sizeof(struct in_addr);
lim = s + addrlen;
break;

0 comments on commit 6978b98

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