From 669ac9d0c843f9ccf07d4969ff6bff75fafee01f Mon Sep 17 00:00:00 2001 From: Michael Grunder Date: Tue, 28 Jan 2020 12:13:05 -0800 Subject: Safe allocation wrappers (#754) Create allocation wrappers with a configurable OOM handler (defaults to abort()). See #752, #747 --- ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ssl.c') diff --git a/ssl.c b/ssl.c index b97fc1d..e1e4aba 100644 --- a/ssl.c +++ b/ssl.c @@ -151,7 +151,7 @@ static void initOpensslLocks(void) { return; } nlocks = CRYPTO_num_locks(); - ossl_locks = malloc(sizeof(*ossl_locks) * nlocks); + ossl_locks = hi_malloc(sizeof(*ossl_locks) * nlocks); for (ii = 0; ii < nlocks; ii++) { sslLockInit(ossl_locks + ii); } -- cgit v1.2.3