[vlc-commits] dsm: fix use of invalid pointer

Thomas Guillem git at videolan.org
Fri Jul 8 16:35:44 CEST 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jul  8 16:19:07 2016 +0200| [fd0ac359b3fb73c58d0d35f15f49b359391c7e87] | committer: Thomas Guillem

dsm: fix use of invalid pointer

login is valid only if vlc_credential_get returned true

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

 modules/access/dsm/access.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/access/dsm/access.c b/modules/access/dsm/access.c
index 0855675..738c8b5 100644
--- a/modules/access/dsm/access.c
+++ b/modules/access/dsm/access.c
@@ -355,8 +355,7 @@ static int login( access_t *p_access )
                 goto success;
         }
 
-        msg_Err( p_access, "Unable to login with username = '%s', domain = '%s'",
-                 psz_login, psz_domain );
+        msg_Err( p_access, "Unable to login" );
         goto error;
     }
     else if( smb_session_is_guest( p_sys->p_session ) == 1 )



More information about the vlc-commits mailing list