Commit 85828aac authored by Martti Mela's avatar Martti Mela

Still an update for APPLE_CC in su_localinfo.c

darcs-hash:20060117121109-1b897-8733c1fc352723cd342164bfffa2d87325eb2235.gz
parent 82e14b65
......@@ -405,10 +405,10 @@ int localinfo4(su_localinfo_t const *hints, su_localinfo_t **rresult)
if (su_xtra) {
/* Map IPv4 address to IPv6 address */
memset(su, 0, sizeof(*su));
su->su_family = AF_INET6;
((int32_t*)&su->su_sin6.sin6_addr)[3] = su->su_sin.sin_addr.s_addr;
((int32_t*)&su->su_sin6.sin6_addr)[2] = htonl(0xffff);
memset(sa, 0, sizeof(*sa));
sa->su_family = AF_INET6;
((int32_t*)&sa->su_sin6.sin6_addr)[3] = sa->su_sin.sin_addr.s_addr;
((int32_t*)&sa->su_sin6.sin6_addr)[2] = htonl(0xffff);
}
li->li_family = sa->su_family;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment