vlc | branch: master | Thomas Guillem <[email protected]> | Mon Jan 11 18:49:36 2016 +0100| [76ae877d41bd46f80786e5886c465a37c3ef3cd5] | committer: Thomas Guillem
dsm: don't store creds in options when browsing a share or if we are a guest > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=76ae877d41bd46f80786e5886c465a37c3ef3cd5 --- modules/access/dsm/access.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/access/dsm/access.c b/modules/access/dsm/access.c index 40dc60e..0f8330b 100644 --- a/modules/access/dsm/access.c +++ b/modules/access/dsm/access.c @@ -548,6 +548,10 @@ static input_item_t *new_item( access_t *p_access, const char *psz_name, if( p_item == NULL ) return NULL; + /* Don't store user/password when browsing share or if we are guest */ + if( smb_session_is_guest( p_sys->p_session ) || p_sys->psz_share == NULL ) + return p_item; + /* Here we save on the node the credentials that allowed us to login. * That way the user isn't prompted more than once for credentials */ if( p_sys->creds.login ) _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
