wininet: Be sure to set lpwfs->pasvSocket to -1 when closing the socket to prevent double closes.

This commit is contained in:
Aric Stewart 2009-09-17 07:42:37 -05:00 committed by Alexandre Julliard
parent 76c61cf536
commit 05926a10ff
1 changed files with 1 additions and 0 deletions

View File

@ -3112,6 +3112,7 @@ static BOOL FTP_GetDataSocket(ftp_session_t *lpwfs, LPINT nDataSocket)
if (lpwfs->hdr.dwFlags & INTERNET_FLAG_PASSIVE)
{
*nDataSocket = lpwfs->pasvSocket;
lpwfs->pasvSocket = -1;
}
else
{