Commit dac1a203 authored by aymeric's avatar aymeric
Browse files

avoid closing socket when it is not already created

git-svn-id: svn+ssh:// 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent 7d7af2a9
......@@ -180,10 +180,6 @@ int ms_discover_mtu(const char *host){
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;
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