diff options
author | Michael Grunder <michael.grunder@gmail.com> | 2020-01-28 12:13:05 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-28 12:13:05 -0800 |
commit | 669ac9d0c843f9ccf07d4969ff6bff75fafee01f (patch) | |
tree | 6075cb357e13342f6844dc9891d6c3c38c8e6f86 /ssl.c | |
parent | 0501c623c91344e54cb2775a91509650960789b1 (diff) |
Safe allocation wrappers (#754)
Create allocation wrappers with a configurable OOM handler (defaults to abort()).
See #752, #747
Diffstat (limited to 'ssl.c')
-rw-r--r-- | ssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |