wininet: Fix sockets leak in FTP_Connect.

This commit is contained in:
Maksim Kuleshov 2009-06-26 16:09:39 +04:00 committed by Alexandre Julliard
parent f2b0e4f6e6
commit d233118f7a
1 changed files with 1 additions and 0 deletions

View File

@ -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
{