mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Ensure credentials structure is initialized
https://fedorahosted.org/freeipa/ticket/3953
This commit is contained in:
committed by
Petr Viktorin
parent
b1cfb47dc0
commit
1acd00487f
@@ -352,7 +352,7 @@ bool ipapwd_do_otp_auth(Slapi_Entry *bind_entry, struct berval *creds)
|
|||||||
|
|
||||||
/* Loop through each token and attempt to authenticate. */
|
/* Loop through each token and attempt to authenticate. */
|
||||||
for (i = 0; tokens && tokens[i]; i++) {
|
for (i = 0; tokens && tokens[i]; i++) {
|
||||||
struct credentials credentials;
|
struct credentials credentials = {};
|
||||||
|
|
||||||
/* Parse the token entry and the credentials. */
|
/* Parse the token entry and the credentials. */
|
||||||
if (!credentials_parse(tokens[i], creds, &credentials))
|
if (!credentials_parse(tokens[i], creds, &credentials))
|
||||||
|
|||||||
Reference in New Issue
Block a user