Ensure credentials structure is initialized

https://fedorahosted.org/freeipa/ticket/3953
This commit is contained in:
Nathaniel McCallum 2013-09-25 18:04:02 -04:00 committed by Petr Viktorin
parent b1cfb47dc0
commit 1acd00487f

View File

@ -352,7 +352,7 @@ bool ipapwd_do_otp_auth(Slapi_Entry *bind_entry, struct berval *creds)
/* Loop through each token and attempt to authenticate. */
for (i = 0; tokens && tokens[i]; i++) {
struct credentials credentials;
struct credentials credentials = {};
/* Parse the token entry and the credentials. */
if (!credentials_parse(tokens[i], creds, &credentials))