]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix a RUN_ONCE bug
authorMatt Caswell <matt@openssl.org>
Tue, 20 Nov 2018 15:32:55 +0000 (15:32 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 4 Jan 2019 13:19:39 +0000 (13:19 +0000)
commit660a1e0434eb5eb8548bea3ad35f3821d49c5c15
tree5af256362cdd09642c877726e33fb1574a5f6c4f
parentdf5228e3b294fc546d0f8ea46e40ac111db58650
Fix a RUN_ONCE bug

We have a number of instances where there are multiple "init" functions for
a single CRYPTO_ONCE variable, e.g. to load config automatically or to not
load config automatically. Unfortunately the RUN_ONCE mechanism was not
correctly giving the right return value where an alternative init function
was being used.

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7647)
crypto/init.c
include/internal/thread_once.h
ssl/ssl_init.c