access: rar: fail gracefully when psz_url==NULL
authorHannes Domani <ssbssa@yahoo.de>
Thu, 27 Aug 2015 14:18:21 +0000 (16:18 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 27 Aug 2015 16:48:38 +0000 (18:48 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/access/rar/stream.c

index 0935a97..399634e 100644 (file)
@@ -61,6 +61,9 @@ int RarStreamOpen(vlc_object_t *object)
 {
     stream_t *s = (stream_t*)object;
 
+    if( s->psz_url == NULL )
+        return VLC_EGENERIC;
+
     if (RarProbe(s->p_source))
         return VLC_EGENERIC;