Commit b01912eb authored by Rémi Denis-Courmont's avatar 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.
parent d4e655fa
...@@ -438,6 +438,11 @@ connect: ...@@ -438,6 +438,11 @@ connect:
if( p_sys->i_code == 401 ) 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; char *psz_login, *psz_password;
/* FIXME ? */ /* FIXME ? */
if( p_sys->url.psz_username && p_sys->url.psz_password && if( p_sys->url.psz_username && p_sys->url.psz_password &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment