Commit 05cd9e9b authored by Rémi Duraffort's avatar Rémi Duraffort

Never print the password in the logs.

(cherry picked from commit ec01f1da)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent 147ef244
...@@ -452,14 +452,7 @@ connect: ...@@ -452,14 +452,7 @@ connect:
p_sys->auth.psz_realm ); p_sys->auth.psz_realm );
if( psz_login != NULL && psz_password != NULL ) if( psz_login != NULL && psz_password != NULL )
{ {
msg_Dbg( p_access, "retrying with user=%s, pwd=%s", msg_Dbg( p_access, "retrying with user=%s", psz_login );
psz_login,
#if 1
"yeah right, like we're going to print a password."
#else
psz_password
#endif
);
p_sys->url.psz_username = psz_login; p_sys->url.psz_username = psz_login;
p_sys->url.psz_password = psz_password; p_sys->url.psz_password = psz_password;
Disconnect( p_access ); Disconnect( p_access );
......
...@@ -128,8 +128,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -128,8 +128,7 @@ static int Open( vlc_object_t *p_this )
if( p_sys->p_thread->url.psz_username && *p_sys->p_thread->url.psz_username ) if( p_sys->p_thread->url.psz_username && *p_sys->p_thread->url.psz_username )
{ {
msg_Dbg( p_access, " user='%s', pwd='%s'", msg_Dbg( p_access, " user='%s'", p_sys->p_thread->url.psz_username );
p_sys->p_thread->url.psz_username, p_sys->p_thread->url.psz_password );
} }
/* Initialize thread variables */ /* Initialize thread variables */
......
...@@ -136,8 +136,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -136,8 +136,7 @@ static int Open( vlc_object_t *p_this )
if( p_sys->p_thread->url.psz_username && *p_sys->p_thread->url.psz_username ) if( p_sys->p_thread->url.psz_username && *p_sys->p_thread->url.psz_username )
{ {
msg_Dbg( p_access, " user='%s', pwd='%s'", msg_Dbg( p_access, " user='%s'", p_sys->p_thread->url.psz_username );
p_sys->p_thread->url.psz_username, p_sys->p_thread->url.psz_password );
} }
/* Initialize thread variables */ /* Initialize thread variables */
......
...@@ -618,8 +618,7 @@ describe: ...@@ -618,8 +618,7 @@ describe:
_("Please enter a valid login name and a password.") ); _("Please enter a valid login name and a password.") );
if( psz_user != NULL && psz_pwd != NULL ) if( psz_user != NULL && psz_pwd != NULL )
{ {
msg_Dbg( p_demux, "retrying with user=%s, pwd=%s", msg_Dbg( p_demux, "retrying with user=%s", psz_user );
psz_user, psz_pwd );
goto describe; goto describe;
} }
} }
......
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