Branch: refs/heads/master
Home: https://github.openssl.org/openssl/openssl
Commit: 697d0b5ba146c232f5b2aa87f4e847a5495c1735
https://github.openssl.org/openssl/openssl/commit/697d0b5ba146c232f5b2aa87f4e847a5495c1735
Author: Matt Caswell <[email protected]>
Date: 2022-06-06 (Mon, 06 Jun 2022)
Changed paths:
M crypto/conf/conf_mod.c
Log Message:
-----------
CONF_modules_unload should fail if CONF_modules_finish fails
The module_list_lock is used by CONF_modules_unload(). That function relies
on the RUN_ONCE in CONF_modules_finish() to initialise that lock. However
if the RUN_ONCE fails that failure is not propagated to
CONF_modules_unload() and so it erroneously tries to use the lock anyway.
Found due to:
https://github.com/openssl/openssl/pull/18355#issuecomment-1144734604
Reviewed-by: Todd Short <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from https://github.com/openssl/openssl/pull/18460)