Commit 2d45569c authored by Thomas Guillem's avatar Thomas Guillem

ftp: check vlc_UrlParseFixup return

parent 190b7f5e
......@@ -443,7 +443,11 @@ static int Login( vlc_object_t *p_access, access_sys_t *p_sys )
vlc_url_t url;
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 );
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