Skip to content

Commit 7725e7b

Browse files
paulidalet8m
authored andcommitted
x509: fix double locking problem
This reverts commit 9aa4be6 and removed the redundant flag setting. Fixes #19643 Fixes LOW CVE-2022-3996 Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from #19652) (cherry picked from commit 4d0340a)
1 parent 9a5c884 commit 7725e7b

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

crypto/x509/pcy_map.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ int ossl_policy_cache_set_mapping(X509 *x, POLICY_MAPPINGS *maps)
7373

7474
ret = 1;
7575
bad_mapping:
76-
if (ret == -1 && CRYPTO_THREAD_write_lock(x->lock)) {
77-
x->ex_flags |= EXFLAG_INVALID_POLICY;
78-
CRYPTO_THREAD_unlock(x->lock);
79-
}
8076
sk_POLICY_MAPPING_pop_free(maps, POLICY_MAPPING_free);
8177
return ret;
8278

0 commit comments

Comments
 (0)