Skip to content

Commit

Permalink
vlc_credential: fix store behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
tguillem committed Feb 29, 2016
1 parent 39c8ea3 commit b1c9947
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/vlc_keystore.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,9 @@ vlc_credential_get(vlc_credential *p_credential, vlc_object_t *p_parent,
/**
* Store the last dialog credential returned by vlc_credential_get()
*
* This function will store the credential only if it comes from the dialog and
* if the vlc_keystore object is valid.
* This function will store the credential in the memory keystore if it's
* valid, or will store in the permanent one if it comes from the dialog and if
* the user asked for it.
*
* @return true if the credential was stored or comes from the keystore, false
* otherwise
Expand Down
2 changes: 2 additions & 0 deletions src/misc/keystore.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,8 @@ vlc_credential_get(vlc_credential *p_credential, vlc_object_t *p_parent,
bool
vlc_credential_store(vlc_credential *p_credential, vlc_object_t *p_parent)
{
if (!is_credential_valid(p_credential))
return false;
/* Don't need to store again */
if (p_credential->b_from_keystore)
return p_credential->b_from_keystore;
Expand Down

0 comments on commit b1c9947

Please sign in to comment.