Commit 86dff7e0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

demux: fix NULL deref on invalid redirection

parent 4768fb3d
......@@ -314,7 +314,11 @@ demux_t *input_DemuxNew( vlc_object_t *obj, const char *access_name,
if( stream->psz_url != NULL )
{
path = strstr( stream->psz_url, "://" );
if( path != NULL )
if( path == NULL )
{
stream_Delete( stream );
goto out;
}
path += 3;
}
......
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