[vlc-commits] dsm: check vlc_UrlParseFixup return

Thomas Guillem git at videolan.org
Thu Dec 7 09:28:00 CET 2017


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Dec  6 09:15:28 2017 +0100| [7f63afb80ac0751ed65a9008a744db934837da4f] | committer: Thomas Guillem

dsm: check vlc_UrlParseFixup return

(cherry picked from commit b8475e9549ad0f8dbb55ae864d6b0df8c4e638a7)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=7f63afb80ac0751ed65a9008a744db934837da4f
---

 modules/access/dsm/access.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/access/dsm/access.c b/modules/access/dsm/access.c
index a58f8f52db..cf84161523 100644
--- a/modules/access/dsm/access.c
+++ b/modules/access/dsm/access.c
@@ -140,7 +140,8 @@ static int Open( vlc_object_t *p_this )
     if( p_sys->p_session == NULL )
         goto error;
 
-    vlc_UrlParseFixup( &p_sys->url, p_access->psz_url );
+    if( vlc_UrlParseFixup( &p_sys->url, p_access->psz_url ) != 0 )
+        goto error;
 
     if( get_address( p_access ) != VLC_SUCCESS )
         goto error;



More information about the vlc-commits mailing list