aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/init.c')
-rw-r--r--crypto/init.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/init.c b/crypto/init.c
index 983d76e457..a224542e03 100644
--- a/crypto/init.c
+++ b/crypto/init.c
@@ -706,10 +706,8 @@ int OPENSSL_atexit(void (*handler)(void))
}
#endif
- if ((newhand = OPENSSL_malloc(sizeof(*newhand))) == NULL) {
- ERR_raise(ERR_LIB_CRYPTO, ERR_R_MALLOC_FAILURE);
+ if ((newhand = OPENSSL_malloc(sizeof(*newhand))) == NULL)
return 0;
- }
newhand->handler = handler;
newhand->next = stop_handlers;