Commit b45859c8 authored by Thomas Guillem's avatar Thomas Guillem

ftp: check vlc_UrlParseFixup return

(cherry picked from commit 2d45569c)
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent 488e19f3
...@@ -443,7 +443,11 @@ static int Login( vlc_object_t *p_access, access_sys_t *p_sys ) ...@@ -443,7 +443,11 @@ static int Login( vlc_object_t *p_access, access_sys_t *p_sys )
vlc_url_t url; vlc_url_t url;
vlc_credential credential; vlc_credential credential;
vlc_UrlParseFixup( &url, ((stream_t *)p_access)->psz_url ); if( vlc_UrlParseFixup( &url, ((stream_t *)p_access)->psz_url ) != 0 )
{
vlc_UrlClean( &url );
goto error;
}
vlc_credential_init( &credential, &url ); vlc_credential_init( &credential, &url );
bool b_logged = false; bool b_logged = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment