summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/objects/o_names.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/objects/o_names.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/libcrypto/objects/o_names.c b/src/lib/libcrypto/objects/o_names.c
index 2b80243256..b4453b4a98 100644
--- a/src/lib/libcrypto/objects/o_names.c
+++ b/src/lib/libcrypto/objects/o_names.c
@@ -79,6 +79,8 @@ int OBJ_NAME_new_index(unsigned long (*hash_func)(const char *),
79 { 79 {
80 MemCheck_off(); 80 MemCheck_off();
81 name_funcs = OPENSSL_malloc(sizeof(NAME_FUNCS)); 81 name_funcs = OPENSSL_malloc(sizeof(NAME_FUNCS));
82 MemCheck_on();
83 if (!name_funcs) return(0);
82 name_funcs->hash_func = lh_strhash; 84 name_funcs->hash_func = lh_strhash;
83 name_funcs->cmp_func = OPENSSL_strcmp; 85 name_funcs->cmp_func = OPENSSL_strcmp;
84 name_funcs->free_func = 0; /* NULL is often declared to 86 name_funcs->free_func = 0; /* NULL is often declared to
@@ -86,6 +88,7 @@ int OBJ_NAME_new_index(unsigned long (*hash_func)(const char *),
86 * to Compaq C is not really 88 * to Compaq C is not really
87 * compatible with a function 89 * compatible with a function
88 * pointer. -- Richard Levitte*/ 90 * pointer. -- Richard Levitte*/
91 MemCheck_off();
89 sk_NAME_FUNCS_push(name_funcs_stack,name_funcs); 92 sk_NAME_FUNCS_push(name_funcs_stack,name_funcs);
90 MemCheck_on(); 93 MemCheck_on();
91 } 94 }