From 05926a10ffa4bb098cc682b090c2bb99aa188214 Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Thu, 17 Sep 2009 07:42:37 -0500 Subject: [PATCH] wininet: Be sure to set lpwfs->pasvSocket to -1 when closing the socket to prevent double closes. --- dlls/wininet/ftp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/wininet/ftp.c b/dlls/wininet/ftp.c index 37667198738..8894add0500 100644 --- a/dlls/wininet/ftp.c +++ b/dlls/wininet/ftp.c @@ -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 { -- 2.11.4.GIT