Commit ae324f4c authored by Thomas Guillem's avatar Thomas Guillem

sftp: check vlc_UrlParseFixup return

(cherry picked from commit 571c0232)
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent 0a67efff
......@@ -250,7 +250,12 @@ static int Open( vlc_object_t* p_this )
p_sys->i_socket = -1;
/* Parse the URL */
vlc_UrlParseFixup( &url, p_access->psz_url );
if( vlc_UrlParseFixup( &url, p_access->psz_url ) != 0 )
{
vlc_UrlClean( &url );
free( p_sys );
return VLC_EGENERIC;
}
vlc_credential_init( &credential, &url );
if( url.psz_path != NULL )
{
......
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