From 6ffb35d0f592414226d4ba4fd3620569e77c20ca Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 6 Jul 2012 16:11:32 -0400 Subject: Fix wrong check after allocation. --- daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_encoding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'daemons/ipa-slapi-plugins') diff --git a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_encoding.c b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_encoding.c index 5720d3e6e..9c1623a3b 100644 --- a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_encoding.c +++ b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_encoding.c @@ -446,7 +446,7 @@ int ipapwd_gen_hashes(struct ipapwd_krbcfg *krbcfg, if (is_ipant) { *ntvals = (Slapi_Value **)calloc(2, sizeof(Slapi_Value *)); - if (!svals) { + if (!*ntvals) { LOG_OOM(); rc = LDAP_OPERATIONS_ERROR; goto done; -- cgit