Commit 23536a28 authored by Thomas Guillem's avatar Thomas Guillem

keystore: fix use-after-free

parent 1d2eb95c
......@@ -309,8 +309,11 @@ credential_find_keystore(vlc_credential *p_credential, vlc_keystore *p_keystore)
* p_credential->psz_username (default username) can be a pointer to an
* entry */
if (p_credential->i_entries_count > 0)
{
vlc_keystore_release_entries(p_credential->p_entries,
p_credential->i_entries_count);
p_credential->psz_username = NULL;
}
p_credential->p_entries = p_entries;
p_credential->i_entries_count = i_entries_count;
......
Markdown is supported
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