]> git.ipfire.org Git - thirdparty/openssl.git/commit
Avoid holding a lock when calling OPENSSL_init_crypto
authorMatt Caswell <matt@openssl.org>
Wed, 7 Aug 2019 09:46:26 +0000 (10:46 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 8 Aug 2019 09:11:16 +0000 (10:11 +0100)
commit5c5cdcd8157c0ce0fdf3793217883c435cdf57bb
treece3a2bbfb2c6d381cb40993612e32f6bf709c94f
parentb9a758060dfe8f1bd11265b1c1550a27cd2c0783
Avoid holding a lock when calling OPENSSL_init_crypto

We move an OPENSSL_init_crypto call slightly earlier in the process to
avoid calling it while holding the store lock. This can lead to deadlocks.

Fixes the no-engine build.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9547)
crypto/provider_core.c