x509: fix double locking problem
authorPauli <pauli@openssl.org>
Thu, 10 Nov 2022 22:40:19 +0000 (09:40 +1100)
committerTomas Mraz <tomas@openssl.org>
Thu, 8 Dec 2022 10:10:58 +0000 (11:10 +0100)
commit4d0340a6d2f327700a059f0b8f954d6160f8eef5
treeb6a41b80f413c3b230da93ab54d8e89e9a3e4a82
parent6c73ca4a2f4ea71f4a880670624e7b2fdb6f32da
x509: fix double locking problem

This reverts commit 9aa4be691f5c73eb3c68606d824c104550c053f7 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 https://github.com/openssl/openssl/pull/19652)
crypto/x509/pcy_map.c