]> git.sesse.net Git - vlc/commitdiff
http: do not bother with login dialog if there is no realm
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 29 Apr 2013 14:02:45 +0000 (17:02 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 29 Apr 2013 14:07:01 +0000 (17:07 +0300)
Authentication will fail anyway. Also fixes NULL for %s.

modules/access/http.c

index 5fbd4610f0ef5178900a241157237f861c103fc0..583cf4a1258448a9a207a314c9a7ad0c3701b7cc 100644 (file)
@@ -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 &&