diff options
Diffstat (limited to 'src/lib/libcrypto/objects/o_names.c')
-rw-r--r-- | src/lib/libcrypto/objects/o_names.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lib/libcrypto/objects/o_names.c b/src/lib/libcrypto/objects/o_names.c index 28c9370ca3..b4453b4a98 100644 --- a/src/lib/libcrypto/objects/o_names.c +++ b/src/lib/libcrypto/objects/o_names.c | |||
@@ -2,7 +2,6 @@ | |||
2 | #include <stdlib.h> | 2 | #include <stdlib.h> |
3 | #include <string.h> | 3 | #include <string.h> |
4 | 4 | ||
5 | #include <openssl/err.h> | ||
6 | #include <openssl/lhash.h> | 5 | #include <openssl/lhash.h> |
7 | #include <openssl/objects.h> | 6 | #include <openssl/objects.h> |
8 | #include <openssl/safestack.h> | 7 | #include <openssl/safestack.h> |
@@ -81,11 +80,7 @@ int OBJ_NAME_new_index(unsigned long (*hash_func)(const char *), | |||
81 | MemCheck_off(); | 80 | MemCheck_off(); |
82 | name_funcs = OPENSSL_malloc(sizeof(NAME_FUNCS)); | 81 | name_funcs = OPENSSL_malloc(sizeof(NAME_FUNCS)); |
83 | MemCheck_on(); | 82 | MemCheck_on(); |
84 | if (!name_funcs) | 83 | if (!name_funcs) return(0); |
85 | { | ||
86 | OBJerr(OBJ_F_OBJ_NAME_NEW_INDEX,ERR_R_MALLOC_FAILURE); | ||
87 | return(0); | ||
88 | } | ||
89 | name_funcs->hash_func = lh_strhash; | 84 | name_funcs->hash_func = lh_strhash; |
90 | name_funcs->cmp_func = OPENSSL_strcmp; | 85 | name_funcs->cmp_func = OPENSSL_strcmp; |
91 | name_funcs->free_func = 0; /* NULL is often declared to | 86 | name_funcs->free_func = 0; /* NULL is often declared to |