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

Alexandre Julliard julliard at winehq.org
Thu Sep 17 13:53:23 CDT 2009


Module: wine
Branch: master
Commit: 05926a10ffa4bb098cc682b090c2bb99aa188214
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=05926a10ffa4bb098cc682b090c2bb99aa188214

Author: Aric Stewart <aric at codeweavers.com>
Date:   Thu Sep 17 07:42:37 2009 -0500

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

---

 dlls/wininet/ftp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/wininet/ftp.c b/dlls/wininet/ftp.c
index 3766719..8894add 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
     {




More information about the wine-cvs mailing list