sussman 00/12/14 10:59:04
Modified: network_io/unix sa_common.c
Log:
* sa_common.c (apr_get_ipaddr): FreeBSD fix from Jeff Trawick
Revision Changes Path
1.21 +1 -1 apr/network_io/unix/sa_common.c
Index: sa_common.c
===================================================================
RCS file: /home/cvs/apr/network_io/unix/sa_common.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- sa_common.c 2000/12/14 16:04:08 1.20
+++ sa_common.c 2000/12/14 18:59:03 1.21
@@ -119,7 +119,7 @@
sockaddr->addr_str_len);
#if APR_HAVE_IPV6
if (sockaddr->sa.sin.sin_family == AF_INET6 &&
- IN6_IS_ADDR_V4MAPPED(sockaddr->ipaddr_ptr)) {
+ IN6_IS_ADDR_V4MAPPED((struct in6_addr *)sockaddr->ipaddr_ptr)) {
/* This is an IPv4-mapped IPv6 address; drop the leading
* part of the address string so we're left with the familiar
* IPv4 format.