Skip to content
Snippets Groups Projects
Commit d233118f authored by Maksim Kuleshov's avatar Maksim Kuleshov Committed by Alexandre Julliard
Browse files

wininet: Fix sockets leak in FTP_Connect.

parent f2b0e4f6
No related branches found
No related tags found
No related merge requests found
......@@ -2462,6 +2462,7 @@ HINTERNET FTP_Connect(LPWININETAPPINFOW hIC, LPCWSTR lpszServerName,
{
ERR("Unable to connect (%s)\n", strerror(errno));
INTERNET_SetLastError(ERROR_INTERNET_CANNOT_CONNECT);
closesocket(nsocket);
}
else
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment