diff options
author | jsing <> | 2018-11-28 15:51:32 +0000 |
---|---|---|
committer | jsing <> | 2018-11-28 15:51:32 +0000 |
commit | 9929fb92ec5eef94190c43b92a4901712953b553 (patch) | |
tree | 89f569e7886b1100fcaafc0b6975a9aec0badcd4 /src/lib/libc/stdlib/malloc.3 | |
parent | 1ea05fdbfec108dafe131398c5f4f7d549fe0fda (diff) | |
download | openbsd-9929fb92ec5eef94190c43b92a4901712953b553.tar.gz openbsd-9929fb92ec5eef94190c43b92a4901712953b553.tar.bz2 openbsd-9929fb92ec5eef94190c43b92a4901712953b553.zip |
Correct lock initialisation for libcrypto.
The current crypto_lock_init() function is not called early enough, meaning
that locks are already in use before it gets called. Worse, locks could be
in use when they are then initialised. Furthermore, since functions like
CRYPTO_lock() are public API, these could be called directly bypassing
initialisation.
Avoid these issues by using static initialisers.
ok bcook@
Diffstat (limited to 'src/lib/libc/stdlib/malloc.3')
0 files changed, 0 insertions, 0 deletions