Commit 05926a10 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

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

parent 76c61cf5
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment