Fix wrong check after allocation.
This commit is contained in:
1 parent
61c3b86d73
commit
6ffb35d0f5
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user