wininet: fix fd leak on failure case
Jan Zerebecki
jan.wine at zerebecki.de
Wed Sep 6 03:46:10 CDT 2006
If this patch is rejected from inclusion, please tell me why, as
I would have to ask anyway.
From: Jan Zerebecki <jan.wine at zerebecki.de>
Changelog:
wininet: fix fd leak on failure case
---
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 62f60c1..8fd48ce 100644
--- a/dlls/wininet/ftp.c
+++ b/dlls/wininet/ftp.c
@@ -2420,6 +2420,7 @@ static BOOL FTP_DoPassive(LPWININETFTPSE
if (connect(nsocket, (struct sockaddr *)&dataSocketAddress, sizeof(dataSocketAddress)))
{
ERR("can't connect passive FTP data port.\n");
+ closesocket(nsocket);
goto lend;
}
lpwfs->pasvSocket = nsocket;
More information about the wine-patches
mailing list