summaryrefslogtreecommitdiffstats
path: root/crypto/mem_sec.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2017-08-29 15:24:17 -0400
committerRich Salz <rsalz@openssl.org>2017-08-31 19:42:03 -0400
commited6b2c7938ec6f07b15745d4183afc276e74c6dd (patch)
treeae11f0bb2f38642aceb8174e7b64e2815316250b /crypto/mem_sec.c
parent3907872f7234744b478499f42a8d151ca89be64d (diff)
Add CRYPTO_thread_glock_new
Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/4294)
Diffstat (limited to 'crypto/mem_sec.c')
-rw-r--r--crypto/mem_sec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/mem_sec.c b/crypto/mem_sec.c
index f8470249c3..ff6e657c62 100644
--- a/crypto/mem_sec.c
+++ b/crypto/mem_sec.c
@@ -66,7 +66,7 @@ int CRYPTO_secure_malloc_init(size_t size, int minsize)
int ret = 0;
if (!secure_mem_initialized) {
- sec_malloc_lock = CRYPTO_THREAD_lock_new();
+ sec_malloc_lock = CRYPTO_THREAD_glock_new("sec_malloc");
if (sec_malloc_lock == NULL)
return 0;
if ((ret = sh_init(size, minsize)) != 0) {