wininet: Fix sockets leak in FTP_Connect.
This commit is contained in:
parent
f2b0e4f6e6
commit
d233118f7a
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue