wininet: Be sure to set lpwfs->pasvSocket to -1 when closing the socket to prevent double closes.
This commit is contained in:
parent
76c61cf536
commit
05926a10ff
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue