Remove pointless locking from err_build_SYS_str_reasons().
authorjsing <jsing@openbsd.org>
Fri, 11 Oct 2024 12:27:24 +0000 (12:27 +0000)
committerjsing <jsing@openbsd.org>
Fri, 11 Oct 2024 12:27:24 +0000 (12:27 +0000)
commite0c93891234498fefb36a74a032c40d00c1a289d
tree89d7d6a57e6b2681aee02321919c3e3780293485
parentd09ec23f2cf11078208036b3028b31f54d1e81a5
Remove pointless locking from err_build_SYS_str_reasons().

err_build_SYS_str_reasons() is only called during initialisation, under
pthread_once(). As such, there is no need to grab CRYPTO_LOCK_ERR or
check for reentrant calls.

ok tb@
lib/libcrypto/err/err.c