x509v3/v3_purp.c: resolve Thread Sanitizer nit.
authorAndy Polyakov <appro@openssl.org>
Sun, 29 Jul 2018 12:13:32 +0000 (14:13 +0200)
committerAndy Polyakov <appro@openssl.org>
Fri, 17 Aug 2018 07:58:50 +0000 (09:58 +0200)
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6916)

(cherry picked from commit 0da7358b0757fa35f2c3a8f51fa036466ae50fd7)

Resolved conflicts:
crypto/x509v3/v3_purp.c

crypto/x509v3/v3_purp.c

index 7080a51c4c5be2c7711e089074a48c0adb3c9dab..6d3aa8f731db565d2b10927cef20a5e4f5098df1 100644 (file)
@@ -396,12 +396,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_w_lock(CRYPTO_LOCK_X509);
     if (x->ex_flags & EXFLAG_SET) {
         CRYPTO_w_unlock(CRYPTO_LOCK_X509);