[vlc-commits] mms: fix redirection handling

Rémi Denis-Courmont git at videolan.org
Fri Aug 5 19:29:53 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Aug  5 20:29:33 2016 +0300| [f65e51fd64f86119b8fe2ceb42c5a6cf0fc241c0] | committer: Rémi Denis-Courmont

mms: fix redirection handling

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

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

diff --git a/modules/access/mms/mmsh.c b/modules/access/mms/mmsh.c
index 2e914d8..af5894e 100644
--- a/modules/access/mms/mmsh.c
+++ b/modules/access/mms/mmsh.c
@@ -663,7 +663,7 @@ static int Describe( access_t  *p_access, char **ppsz_location )
         else if( !strcasecmp( psz, "Location" ) )
         {
             free( psz_location );
-            psz_location = strdup( p );
+            psz_location = vlc_uri_resolve( p_access->psz_url, p );
         }
         else if( !strcasecmp( psz, "Content-Length" ) )
         {
@@ -686,7 +686,7 @@ static int Describe( access_t  *p_access, char **ppsz_location )
     /* Handle the redirection */
     if( ( (i_code == 301) || (i_code == 302) ||
           (i_code == 303) || (i_code == 307) ) &&
-        psz_location && *psz_location )
+        psz_location )
     {
         msg_Dbg( p_access, "redirection to %s", psz_location );
         net_Close( p_sys->fd ); p_sys->fd = -1;



More information about the vlc-commits mailing list