Commit 84991383 authored by Simon Morlat's avatar Simon Morlat
Browse files

fix two bugs - IPv6 now fully working on android.

parent 7fde3a34
......@@ -1176,7 +1176,7 @@ void belle_sip_channel_set_ready(belle_sip_channel_t *obj, const struct sockaddr
belle_sip_address_remove_v4_mapping(addr,(struct sockaddr*) &saddr,&slen2);
err=getnameinfo((struct sockaddr*)&saddr,slen,name,sizeof(name),serv,sizeof(serv),NI_NUMERICHOST|NI_NUMERICSERV);
err=getnameinfo((struct sockaddr*)&saddr,slen2,name,sizeof(name),serv,sizeof(serv),NI_NUMERICHOST|NI_NUMERICSERV);
if (err!=0){
belle_sip_error("belle_sip_channel_set_ready(): getnameinfo() failed: %s",gai_strerror(err));
......@@ -257,7 +257,7 @@ int belle_sip_getaddrinfo(const char *node, const char *service, const struct ad
if (hints) memcpy(&lhints,hints,sizeof(lhints));
lhints.ai_flags &= ~(AI_ALL & AI_V4MAPPED); /*remove the unsupported flags*/
lhints.ai_flags &= ~(AI_ALL | AI_V4MAPPED); /*remove the unsupported flags*/
if (hints->ai_flags & AI_ALL){
err=getaddrinfo(node, service, &lhints, &res6);
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