Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
51a57b7e
Commit
51a57b7e
authored
Sep 16, 2009
by
Aric Stewart
Committed by
Alexandre Julliard
Sep 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Ensure the ftp connections lstnSocket is set to -1 after each close.
parent
deb9404b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
ftp.c
dlls/wininet/ftp.c
+12
-0
No files found.
dlls/wininet/ftp.c
View file @
51a57b7e
...
@@ -380,7 +380,10 @@ static BOOL FTP_FtpPutFileW(ftp_session_t *lpwfs, LPCWSTR lpszLocalFile,
...
@@ -380,7 +380,10 @@ static BOOL FTP_FtpPutFileW(ftp_session_t *lpwfs, LPCWSTR lpszLocalFile,
}
}
if
(
lpwfs
->
lstnSocket
!=
-
1
)
if
(
lpwfs
->
lstnSocket
!=
-
1
)
{
closesocket
(
lpwfs
->
lstnSocket
);
closesocket
(
lpwfs
->
lstnSocket
);
lpwfs
->
lstnSocket
=
-
1
;
}
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
{
...
@@ -850,7 +853,10 @@ static HINTERNET FTP_FtpFindFirstFileW(ftp_session_t *lpwfs,
...
@@ -850,7 +853,10 @@ static HINTERNET FTP_FtpFindFirstFileW(ftp_session_t *lpwfs,
lend:
lend:
if
(
lpwfs
->
lstnSocket
!=
-
1
)
if
(
lpwfs
->
lstnSocket
!=
-
1
)
{
closesocket
(
lpwfs
->
lstnSocket
);
closesocket
(
lpwfs
->
lstnSocket
);
lpwfs
->
lstnSocket
=
-
1
;
}
hIC
=
lpwfs
->
lpAppInfo
;
hIC
=
lpwfs
->
lpAppInfo
;
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
...
@@ -1305,7 +1311,10 @@ HINTERNET FTP_FtpOpenFileW(ftp_session_t *lpwfs,
...
@@ -1305,7 +1311,10 @@ HINTERNET FTP_FtpOpenFileW(ftp_session_t *lpwfs,
}
}
if
(
lpwfs
->
lstnSocket
!=
-
1
)
if
(
lpwfs
->
lstnSocket
!=
-
1
)
{
closesocket
(
lpwfs
->
lstnSocket
);
closesocket
(
lpwfs
->
lstnSocket
);
lpwfs
->
lstnSocket
=
-
1
;
}
hIC
=
lpwfs
->
lpAppInfo
;
hIC
=
lpwfs
->
lpAppInfo
;
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
...
@@ -1629,7 +1638,10 @@ static BOOL FTP_FtpGetFileW(ftp_session_t *lpwfs, LPCWSTR lpszRemoteFile, LPCWST
...
@@ -1629,7 +1638,10 @@ static BOOL FTP_FtpGetFileW(ftp_session_t *lpwfs, LPCWSTR lpszRemoteFile, LPCWST
}
}
if
(
lpwfs
->
lstnSocket
!=
-
1
)
if
(
lpwfs
->
lstnSocket
!=
-
1
)
{
closesocket
(
lpwfs
->
lstnSocket
);
closesocket
(
lpwfs
->
lstnSocket
);
lpwfs
->
lstnSocket
=
-
1
;
}
CloseHandle
(
hFile
);
CloseHandle
(
hFile
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment