Commit 571c0232 authored by Thomas Guillem's avatar Thomas Guillem

sftp: check vlc_UrlParseFixup return

parent a495e2b5
......@@ -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