[vlc-devel] commit: Do not print the password in the log. That's dangerous! ( Antoine Cellerier )

git version control git at videolan.org
Mon Apr 6 22:12:46 CEST 2009


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Mon Apr  6 22:11:07 2009 +0200| [22f452d08337841a52b352876be11d9bfabb65d6] | committer: Antoine Cellerier 

Do not print the password in the log. That's dangerous!

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

 modules/access/http.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/modules/access/http.c b/modules/access/http.c
index 4b24ad3..0304f2d 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -451,7 +451,13 @@ connect:
         if( psz_login != NULL && psz_password != NULL )
         {
             msg_Dbg( p_access, "retrying with user=%s, pwd=%s",
-                        psz_login, psz_password );
+                     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_password = psz_password;
             Disconnect( p_access );




More information about the vlc-devel mailing list