Commit f9944743 authored by Damien Fouilleul's avatar Damien Fouilleul

- udp.c: unix fix

parent f11c071d
......@@ -663,7 +663,7 @@ static const char *MakeRandMulticast (int family, char *buf, size_t buflen)
}
return NULL;
#else
return inet_ntop (family, &(addr.sin_addr), buf, buflen);
return inet_ntop (family, &(addr.sin6_addr), buf, buflen);
#endif
}
#endif
......@@ -682,7 +682,7 @@ static const char *MakeRandMulticast (int family, char *buf, size_t buflen)
}
return NULL;
#else
return inet_ntop (family, &addr, buf, buflen);
return inet_ntop (family, &(addr.sin_addr), buf, buflen);
#endif
}
}
......
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