mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
avoid closing socket when it is not already created
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@510 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
7d7af2a9f0
commit
dac1a20373
1 changed files with 0 additions and 4 deletions
|
|
@ -180,10 +180,6 @@ int ms_discover_mtu(const char *host){
|
|||
err=getaddrinfo(host,port,&hints,&ai);
|
||||
if (err!=0){
|
||||
ms_error("getaddrinfo(): %s\n",gai_strerror(err));
|
||||
err = close(sock);
|
||||
if (err!=0)
|
||||
ms_error("close(): %s", strerror(err));
|
||||
|
||||
return -1;
|
||||
}
|
||||
sock=socket(PF_INET,SOCK_DGRAM,0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue