Commit d233118f authored by Maksim Kuleshov's avatar Maksim Kuleshov Committed by Alexandre Julliard

wininet: Fix sockets leak in FTP_Connect.

parent f2b0e4f6
...@@ -2462,6 +2462,7 @@ HINTERNET FTP_Connect(LPWININETAPPINFOW hIC, LPCWSTR lpszServerName, ...@@ -2462,6 +2462,7 @@ HINTERNET FTP_Connect(LPWININETAPPINFOW hIC, LPCWSTR lpszServerName,
{ {
ERR("Unable to connect (%s)\n", strerror(errno)); ERR("Unable to connect (%s)\n", strerror(errno));
INTERNET_SetLastError(ERROR_INTERNET_CANNOT_CONNECT); INTERNET_SetLastError(ERROR_INTERNET_CANNOT_CONNECT);
closesocket(nsocket);
} }
else else
{ {
......
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