vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Mon Apr 29 
17:02:45 2013 +0300| [b85e43315e326afe6c75e0473ef073ddb3585f28] | committer: 
Rémi Denis-Courmont

http: do not bother with login dialog if there is no realm

Authentication will fail anyway. Also fixes NULL for %s.

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

 modules/access/http.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/access/http.c b/modules/access/http.c
index 5fbd461..583cf4a 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -438,6 +438,11 @@ connect:
 
     if( p_sys->i_code == 401 )
     {
+        if( p_sys->auth.psz_realm == NULL )
+        {
+            msg_Err( p_access, "authentication failed without realm" );
+            goto error;
+        }
         char *psz_login, *psz_password;
         /* FIXME ? */
         if( p_sys->url.psz_username && p_sys->url.psz_password &&

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to