summaryrefslogtreecommitdiffstats
path: root/daemons/ipa-slapi-plugins
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-11-26 11:15:19 +0100
committerRob Crittenden <rcritten@redhat.com>2010-11-29 17:21:17 -0500
commitdf28017eafc5c51f1fc136b2cae6169456d3c963 (patch)
treef80918221bda76fc43e973e4c996573e2eeef559 /daemons/ipa-slapi-plugins
parent58bcb5e7f9eb5e249bf19f562dcfcf7acddc6987 (diff)
downloadfreeipa-df28017eafc5c51f1fc136b2cae6169456d3c963.tar.gz
freeipa-df28017eafc5c51f1fc136b2cae6169456d3c963.tar.xz
freeipa-df28017eafc5c51f1fc136b2cae6169456d3c963.zip
Init smods to prevent crash if encode_keys fails
Diffstat (limited to 'daemons/ipa-slapi-plugins')
-rw-r--r--daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c
index 99ade1211..31ecb1e42 100644
--- a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c
+++ b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c
@@ -1092,7 +1092,7 @@ int ipapwd_SetPassword(struct ipapwd_krbcfg *krbcfg,
struct ipapwd_data *data, int is_krb)
{
int ret = 0;
- Slapi_Mods *smods;
+ Slapi_Mods *smods = NULL;
Slapi_Value **svals = NULL;
Slapi_Value **pwvals = NULL;
struct tm utctime;