summaryrefslogtreecommitdiffstats
path: root/crypto/objects/o_names.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/objects/o_names.c')
-rw-r--r--crypto/objects/o_names.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/objects/o_names.c b/crypto/objects/o_names.c
index 1efa0345fb..5a468bba3a 100644
--- a/crypto/objects/o_names.c
+++ b/crypto/objects/o_names.c
@@ -89,7 +89,6 @@ int OBJ_NAME_new_index(unsigned long (*hash_func) (const char *),
for (i = sk_NAME_FUNCS_num(name_funcs_stack); i < names_type_num; i++) {
name_funcs = OPENSSL_zalloc(sizeof(*name_funcs));
if (name_funcs == NULL) {
- ERR_raise(ERR_LIB_OBJ, ERR_R_MALLOC_FAILURE);
ret = 0;
goto out;
}
@@ -98,7 +97,7 @@ int OBJ_NAME_new_index(unsigned long (*hash_func) (const char *),
push = sk_NAME_FUNCS_push(name_funcs_stack, name_funcs);
if (!push) {
- ERR_raise(ERR_LIB_OBJ, ERR_R_MALLOC_FAILURE);
+ ERR_raise(ERR_LIB_OBJ, ERR_R_CRYPTO_LIB);
OPENSSL_free(name_funcs);
ret = 0;
goto out;