diff options
Diffstat (limited to 'lib/libcrypto/ex_data.c')
-rw-r--r-- | lib/libcrypto/ex_data.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/ex_data.c b/lib/libcrypto/ex_data.c index 5cd01c72d10..62da76fd0ee 100644 --- a/lib/libcrypto/ex_data.c +++ b/lib/libcrypto/ex_data.c @@ -343,8 +343,8 @@ def_add_index(EX_CLASS_ITEM *item, long argl, void *argp, CRYPTO_EX_new *new_func, CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func) { int toret = -1; - CRYPTO_EX_DATA_FUNCS *a = (CRYPTO_EX_DATA_FUNCS *)malloc( - sizeof(CRYPTO_EX_DATA_FUNCS)); + CRYPTO_EX_DATA_FUNCS *a = malloc(sizeof(CRYPTO_EX_DATA_FUNCS)); + if (!a) { CRYPTOerr(CRYPTO_F_DEF_ADD_INDEX, ERR_R_MALLOC_FAILURE); return -1; |