[vlc-commits] nfs: check vlc_UrlParseFixup return
    Thomas Guillem 
    git at videolan.org
       
    Thu Dec  7 09:28:02 CET 2017
    
    
  
vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Dec  6 09:43:09 2017 +0100| [488e19f3746a9a9117f48cc8cf842203666cb010] | committer: Thomas Guillem
nfs: check vlc_UrlParseFixup return
(cherry picked from commit 190b7f5e777e03d7bc8c368183dfd1c2c53b3883)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=488e19f3746a9a9117f48cc8cf842203666cb010
---
 modules/access/nfs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/access/nfs.c b/modules/access/nfs.c
index 92e44a2e4b..854e936160 100644
--- a/modules/access/nfs.c
+++ b/modules/access/nfs.c
@@ -635,7 +635,8 @@ Open(vlc_object_t *p_obj)
         goto error;
 
     /* Parse the encoded URL */
-    vlc_UrlParseFixup(&p_sys->encoded_url, p_access->psz_url);
+    if (vlc_UrlParseFixup(&p_sys->encoded_url, p_access->psz_url) != 0)
+        goto error;
     if (p_sys->encoded_url.psz_option)
     {
         if (strstr(p_sys->encoded_url.psz_option, "uid")
    
    
More information about the vlc-commits
mailing list