[openssl-commits] [openssl] OpenSSL_1_1_0-stable update
Richard Levitte
levitte at openssl.org
Thu Apr 6 08:38:42 UTC 2017
The branch OpenSSL_1_1_0-stable has been updated
via 9d7a0588b3e375fa29adca030656fed816cf18e5 (commit)
from 7efa321c57b74fdcc402ac72b3bb3f912e9df7ab (commit)
- Log -----------------------------------------------------------------
commit 9d7a0588b3e375fa29adca030656fed816cf18e5
Author: Richard Levitte <levitte at openssl.org>
Date: Thu Apr 6 10:24:55 2017 +0200
In rand_cleanup_int(), don't go creating a default method
If no default method was yet given, RAND_get_rand_method() will set it
up. Doing so just to clean it away seems pretty silly, so instead,
use the default_RAND_meth variable directly.
This also clears a possible race condition where this will try to init
things, such as ERR or ENGINE when in the middle of a OPENSSL_cleanup.
Fixes #3128
Reviewed-by: Matt Caswell <matt at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3136)
(cherry picked from commit 5006b37b31c5a520c3065048bd8aba8cc3ff128d)
-----------------------------------------------------------------------
Summary of changes:
crypto/rand/rand_lib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/rand/rand_lib.c b/crypto/rand/rand_lib.c
index 2387126..60c1b17 100644
--- a/crypto/rand/rand_lib.c
+++ b/crypto/rand/rand_lib.c
@@ -79,7 +79,7 @@ int RAND_set_rand_engine(ENGINE *engine)
void rand_cleanup_int(void)
{
- const RAND_METHOD *meth = RAND_get_rand_method();
+ const RAND_METHOD *meth = default_RAND_meth;
if (meth && meth->cleanup)
meth->cleanup();
RAND_set_rand_method(NULL);
More information about the openssl-commits
mailing list