diff options
author | Rich Salz <rsalz@openssl.org> | 2017-08-29 21:24:17 +0200 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-09-01 01:42:03 +0200 |
commit | ed6b2c7938ec6f07b15745d4183afc276e74c6dd (patch) | |
tree | ae11f0bb2f38642aceb8174e7b64e2815316250b /crypto/engine | |
parent | Fix potential null problem. (diff) | |
download | openssl-ed6b2c7938ec6f07b15745d4183afc276e74c6dd.tar.xz openssl-ed6b2c7938ec6f07b15745d4183afc276e74c6dd.zip |
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/engine')
-rw-r--r-- | crypto/engine/eng_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/engine/eng_lib.c b/crypto/engine/eng_lib.c index c060a5d6ac..8e2ff9da16 100644 --- a/crypto/engine/eng_lib.c +++ b/crypto/engine/eng_lib.c @@ -21,7 +21,7 @@ CRYPTO_ONCE engine_lock_init = CRYPTO_ONCE_STATIC_INIT; DEFINE_RUN_ONCE(do_engine_lock_init) { OPENSSL_init_crypto(0, NULL); - global_engine_lock = CRYPTO_THREAD_lock_new(); + global_engine_lock = CRYPTO_THREAD_glock_new("global_engine"); return global_engine_lock != NULL; } |