26 lines
1019 B
Diff
26 lines
1019 B
Diff
From 6ffb35d0f592414226d4ba4fd3620569e77c20ca Mon Sep 17 00:00:00 2001
|
|
From: Simo Sorce <ssorce@redhat.com>
|
|
Date: Fri, 6 Jul 2012 16:11:32 -0400
|
|
Subject: [PATCH 08/79] Fix wrong check after allocation.
|
|
|
|
---
|
|
daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_encoding.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
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 5720d3e6e0a7e6b1520e51a5ee319bcc47354fc9..9c1623a3b28932fba48c878dc6084862a2ba7831 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;
|
|
--
|
|
1.7.11.2
|
|
|