From df28017eafc5c51f1fc136b2cae6169456d3c963 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Fri, 26 Nov 2010 11:15:19 +0100 Subject: Init smods to prevent crash if encode_keys fails --- daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'daemons') 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 99ade121..31ecb1e4 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; -- cgit