Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
869567f7
Commit
869567f7
authored
Jan 24, 2016
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
keystore: reset credentials when they are not valid
parent
1ec4edf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
src/misc/keystore.c
src/misc/keystore.c
+9
-2
No files found.
src/misc/keystore.c
View file @
869567f7
...
...
@@ -156,8 +156,15 @@ find_closest_path(vlc_keystore_entry *p_entries, unsigned i_count,
static
bool
is_credential_valid
(
vlc_credential
*
p_credential
)
{
return
p_credential
->
psz_username
&&
*
p_credential
->
psz_username
!=
'\0'
&&
p_credential
->
psz_password
;
if
(
p_credential
->
psz_username
&&
*
p_credential
->
psz_username
!=
'\0'
&&
p_credential
->
psz_password
)
return
true
;
else
{
p_credential
->
psz_username
=
p_credential
->
psz_password
=
NULL
;
return
false
;
}
}
/* Default port for each protocol */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment