Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9a6ba225
Commit
9a6ba225
authored
Jun 07, 2007
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 07, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: More lenient parsing of the passive mode server response.
parent
a2daceb7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
ftp.c
dlls/wininet/ftp.c
+3
-10
No files found.
dlls/wininet/ftp.c
View file @
9a6ba225
...
...
@@ -2545,18 +2545,11 @@ static BOOL FTP_DoPassive(LPWININETFTPSESSIONW lpwfs)
struct
sockaddr_in
dataSocketAddress
;
p
=
lpszResponseBuffer
+
4
;
/* skip status code */
while
(
*
p
!=
'\0'
&&
(
*
p
<
'0'
||
*
p
>
'9'
))
p
++
;
/* do a very strict check; we can improve that later. */
if
(
strncmp
(
p
,
"Entering Passive Mode"
,
21
))
{
ERR
(
"unknown response '%.*s', aborting
\n
"
,
21
,
p
);
goto
lend
;
}
p
+=
21
;
/* skip string */
if
((
*
p
++
!=
' '
)
||
(
*
p
++
!=
'('
))
if
(
*
p
==
'\0'
)
{
ERR
(
"
unknown response format
, aborting
\n
"
);
ERR
(
"
no address found in response
, aborting
\n
"
);
goto
lend
;
}
...
...
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