Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
11558099
Commit
11558099
authored
Jul 10, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix an old typo
parent
85c84889
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
modules/access/ftp.c
modules/access/ftp.c
+5
-4
No files found.
modules/access/ftp.c
View file @
11558099
...
...
@@ -562,10 +562,10 @@ static int ftp_StartStream( access_t *p_access, off_t i_start )
char
psz_ipv4
[
16
],
*
psz_ip
;
int
i_answer
;
char
*
psz_arg
,
*
psz_parser
;
unsigned
a1
,
a2
,
a3
,
a4
,
p1
,
p2
;
int
i_port
;
if
(
(
ftp_SendCommand
(
p_access
,
p_sys
->
psz_epsv_ip
!=
NULL
psz_ip
=
p_sys
->
psz_epsv_ip
;
if
(
(
ftp_SendCommand
(
p_access
,
(
psz_ip
!=
NULL
)
?
"EPSV"
:
"PASV"
)
<
0
)
||
(
ftp_ReadCommand
(
p_access
,
&
i_answer
,
&
psz_arg
)
!=
2
)
)
{
...
...
@@ -581,7 +581,6 @@ static int ftp_StartStream( access_t *p_access, off_t i_start )
return
VLC_EGENERIC
;
}
psz_ip
=
p_sys
->
psz_epsv_ip
;
if
(
psz_ip
!=
NULL
)
{
char
psz_fmt
[
7
]
=
"(|||%u"
;
...
...
@@ -596,6 +595,8 @@ static int ftp_StartStream( access_t *p_access, off_t i_start )
}
else
{
unsigned
a1
,
a2
,
a3
,
a4
,
p1
,
p2
;
if
(
(
sscanf
(
psz_parser
,
"(%u,%u,%u,%u,%u,%u"
,
&
a1
,
&
a2
,
&
a3
,
&
a4
,
&
p1
,
&
p2
)
<
6
)
||
(
a1
>
255
)
||
(
a2
>
255
)
||
(
a3
>
255
)
||
(
a4
>
255
)
||
(
p1
>
255
)
||
(
p2
>
255
)
)
...
...
@@ -658,7 +659,7 @@ static int ftp_StopStream ( access_t *p_access )
if
(
ftp_SendCommand
(
p_access
,
"ABOR"
)
<
0
)
{
msg_Warn
(
p_access
,
"cannot abor
d
file"
);
msg_Warn
(
p_access
,
"cannot abor
t
file"
);
if
(
p_sys
->
fd_data
>
0
)
net_Close
(
p_sys
->
fd_data
);
p_sys
->
fd_data
=
-
1
;
...
...
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