diff options
author | Andy Polyakov <appro@openssl.org> | 2018-07-29 14:13:32 +0200 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2018-08-07 09:08:27 +0200 |
commit | 0da7358b0757fa35f2c3a8f51fa036466ae50fd7 (patch) | |
tree | 1d3bc4e08901a6b96f6500efbf7480d5c38fc98a | |
parent | 9ef9088c1585e13b9727796f15f77da64dbbe623 (diff) |
x509v3/v3_purp.c: resolve Thread Sanitizer nit.
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6786)
-rw-r--r-- | crypto/x509v3/v3_purp.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/crypto/x509v3/v3_purp.c b/crypto/x509v3/v3_purp.c index b42151295f..d804106788 100644 --- a/crypto/x509v3/v3_purp.c +++ b/crypto/x509v3/v3_purp.c @@ -351,12 +351,8 @@ static void x509v3_cache_extensions(X509 *x) ASN1_BIT_STRING *ns; EXTENDED_KEY_USAGE *extusage; X509_EXTENSION *ex; - int i; - if (x->ex_flags & EXFLAG_SET) - return; - CRYPTO_THREAD_write_lock(x->lock); if (x->ex_flags & EXFLAG_SET) { CRYPTO_THREAD_unlock(x->lock); |