Patch attached.
>From 856ec54787d188fb29592a1fb021a29fb8d83abb Mon Sep 17 00:00:00 2001
From: Nathaniel McCallum <npmccal...@redhat.com>
Date: Wed, 25 Sep 2013 18:04:02 -0400
Subject: [PATCH] Ensure credentials structure is initialized

---
 daemons/ipa-slapi-plugins/ipa-pwd-extop/auth.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/daemons/ipa-slapi-plugins/ipa-pwd-extop/auth.c b/daemons/ipa-slapi-plugins/ipa-pwd-extop/auth.c
index ae47bab33cc924f9feb3db05b6da5bc094c21914..cccddeb91d84b45aa23d13792725ff20d7af2c7f 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))
-- 
1.8.3.1

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to