]> git.ipfire.org Git - thirdparty/openssl.git/commit
Add a missing RUN_ONCE in rand_lib.c
authorMatt Caswell <matt@openssl.org>
Thu, 18 Mar 2021 10:22:51 +0000 (10:22 +0000)
committerPauli <ppzgs1@gmail.com>
Sat, 20 Mar 2021 00:26:00 +0000 (10:26 +1000)
commitb402f00ee26157ad4e7e6e52f3a736743e3de46f
treeead2cbacb68a89fcf80e2d7a36364e3754015a78
parentf9398cc2b31858ddaaea3f5cfec2fce7f9b90347
Add a missing RUN_ONCE in rand_lib.c

Some of the callbacks in rand_lib.c were being invoked without the
RUN_ONCE for that file being called. We add it during rand_pool_new
which should cover all cases.

Fixes #7870
Fixes #11144

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14603)
crypto/rand/rand_lib.c