summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel McCallum <npmccallum@redhat.com>2013-09-25 18:04:02 -0400
committerPetr Viktorin <pviktori@redhat.com>2013-10-02 14:39:04 +0200
commitc6647a09ab6d37c2acf60cd95e365598d72c6fb9 (patch)
treea4dcb4d2116e61847576138d680cb3049c40c38a
parent8cc0de367b506199b906749eecefacdbb5ca0bf8 (diff)
downloadfreeipa.git-c6647a09ab6d37c2acf60cd95e365598d72c6fb9.tar.gz
freeipa.git-c6647a09ab6d37c2acf60cd95e365598d72c6fb9.tar.xz
freeipa.git-c6647a09ab6d37c2acf60cd95e365598d72c6fb9.zip
Ensure credentials structure is initialized
https://fedorahosted.org/freeipa/ticket/3953
-rw-r--r--daemons/ipa-slapi-plugins/ipa-pwd-extop/auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemons/ipa-slapi-plugins/ipa-pwd-extop/auth.c b/daemons/ipa-slapi-plugins/ipa-pwd-extop/auth.c
index ae47bab3..cccddeb9 100644
--- a/daemons/ipa-slapi-plugins/ipa-pwd-extop/auth.c
+++ b/daemons/ipa-slapi-plugins/ipa-pwd-extop/auth.c
@@ -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))