summaryrefslogtreecommitdiffstats
path: root/daemons
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2012-07-06 16:11:32 -0400
committerSimo Sorce <ssorce@redhat.com>2012-07-07 16:30:22 -0400
commit6ffb35d0f592414226d4ba4fd3620569e77c20ca (patch)
treed90eea9795692c97eff46adc4ebf6b0a55595256 /daemons
parent61c3b86d734389b2cd77b73030bd5293111e2cc5 (diff)
downloadfreeipa-6ffb35d0f592414226d4ba4fd3620569e77c20ca.tar.gz
freeipa-6ffb35d0f592414226d4ba4fd3620569e77c20ca.tar.xz
freeipa-6ffb35d0f592414226d4ba4fd3620569e77c20ca.zip
Fix wrong check after allocation.
Diffstat (limited to 'daemons')
-rw-r--r--daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_encoding.c2
1 files changed, 1 insertions, 1 deletions
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;