forked from mirrors/linphone-iphone
fix sigsegv
This commit is contained in:
parent
e28d061d59
commit
e4030f398d
1 changed files with 1 additions and 1 deletions
|
|
@ -750,6 +750,7 @@ int linphone_core_get_local_ip_for(int type, const char *dest, char *result){
|
|||
dest="87.98.157.38"; /*a public IP address*/
|
||||
else dest="2a00:1450:8002::68";
|
||||
}
|
||||
strcpy(result,type==AF_INET ? "127.0.0.1" : "::1");
|
||||
#ifdef HAVE_GETIFADDRS
|
||||
{
|
||||
int found_ifs;
|
||||
|
|
@ -759,7 +760,6 @@ int linphone_core_get_local_ip_for(int type, const char *dest, char *result){
|
|||
return 0;
|
||||
}else if (found_ifs<=0){
|
||||
/*absolutely no network on this machine */
|
||||
strcpy(result,type==AF_INET ? "127.0.0.1" : "::1");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue