Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
5a16baa2
Commit
5a16baa2
authored
Sep 12, 2008
by
Marian Durkovic
Committed by
Derk-Jan Hartman
Sep 12, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't hang VLC on ABOR in FTP access (closes #2027)
Signed-off-by:
Derk-Jan Hartman
<
hartman@videolan.org
>
parent
58b66d49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
modules/access/ftp.c
modules/access/ftp.c
+4
-7
No files found.
modules/access/ftp.c
View file @
5a16baa2
...
...
@@ -791,16 +791,13 @@ static int ftp_StopStream ( vlc_object_t *p_access, access_sys_t *p_sys )
if
(
p_sys
->
fd_data
!=
-
1
)
{
int
i_answer
;
ftp_ReadCommand
(
p_access
,
p_sys
,
&
i_answer
,
NULL
);
if
(
i_answer
!=
227
)
/* If answer is from the previous command,
* rathen that succesful ABOR - read next command */
ftp_ReadCommand
(
p_access
,
p_sys
,
NULL
,
NULL
);
net_Close
(
p_sys
->
fd_data
);
p_sys
->
fd_data
=
-
1
;
/* Read the final response from RETR/STOR, i.e. 426 or 226 */
ftp_ReadCommand
(
p_access
,
p_sys
,
NULL
,
NULL
);
}
/* Read the response from ABOR, i.e. 226 or 225 */
ftp_ReadCommand
(
p_access
,
p_sys
,
NULL
,
NULL
);
return
VLC_SUCCESS
;
}
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