Commit 76ae877d authored by Thomas Guillem's avatar Thomas Guillem
Browse files

dsm: don't store creds in options when browsing a share or if we are a guest

parent 7c305abc
......@@ -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 )
Supports Markdown
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