[vlc-commits] ftp: use vlc_UrlParseFixup

Thomas Guillem git at videolan.org
Thu Dec 7 09:27:56 CET 2017


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Dec  5 09:51:00 2017 +0100| [04a9ebf0ce4c00a1d26afdf0320a88274addd70f] | committer: Thomas Guillem

ftp: use vlc_UrlParseFixup

Refs #18991

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

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

 modules/access/ftp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/access/ftp.c b/modules/access/ftp.c
index 79387772a3..fd486831cb 100644
--- a/modules/access/ftp.c
+++ b/modules/access/ftp.c
@@ -443,7 +443,7 @@ static int Login( vlc_object_t *p_access, access_sys_t *p_sys )
 
     vlc_url_t url;
     vlc_credential credential;
-    vlc_UrlParse( &url, ((stream_t *)p_access)->psz_url );
+    vlc_UrlParseFixup( &url, ((stream_t *)p_access)->psz_url );
     vlc_credential_init( &credential, &url );
     bool b_logged = false;
 
@@ -645,7 +645,7 @@ static int parseURL( vlc_url_t *url, const char *path, enum tls_mode_e mode )
     while( *path == '/' )
         path++;
 
-    vlc_UrlParse( url, path );
+    vlc_UrlParseFixup( url, path );
 
     if( url->psz_host == NULL || *url->psz_host == '\0' )
         return VLC_EGENERIC;



More information about the vlc-commits mailing list