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

fix again

parent 76e61b81
...@@ -1125,18 +1125,17 @@ int linphone_core_get_local_ip_for(int type, const char *dest, char *result){ ...@@ -1125,18 +1125,17 @@ int linphone_core_get_local_ip_for(int type, const char *dest, char *result){
* try to find 'the' running interface with getifaddrs*/ * try to find 'the' running interface with getifaddrs*/
#ifdef HAVE_GETIFADDRS #ifdef HAVE_GETIFADDRS
if (dest==NULL) {
/*we use getifaddrs for lookup of default interface */ /*we use getifaddrs for lookup of default interface */
int found_ifs; int found_ifs;
found_ifs=get_local_ip_with_getifaddrs(type,result,LINPHONE_IPADDR_SIZE); found_ifs=get_local_ip_with_getifaddrs(type,result,LINPHONE_IPADDR_SIZE);
if (found_ifs==1){ if (found_ifs==1){
return 0; return 0;
}else if (found_ifs<=0){ }else if (found_ifs<=0){
/*absolutely no network on this machine */ /*absolutely no network on this machine */
return -1; return -1;
} }
}
#endif #endif
return 0; return 0;
} }
......
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