[vlc-commits] nfs: check vlc_UrlParseFixup return

Thomas Guillem git at videolan.org
Wed Dec 6 10:13:35 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Dec  6 09:43:09 2017 +0100| [190b7f5e777e03d7bc8c368183dfd1c2c53b3883] | committer: Thomas Guillem

nfs: check vlc_UrlParseFixup return

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=190b7f5e777e03d7bc8c368183dfd1c2c53b3883
---

 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