Commit dac1a203 authored by aymeric's avatar aymeric
Browse files

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
parent 7d7af2a9
......@@ -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);
......
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