提交 f58cee8f 编写于 作者: M Matt Caswell

Fix memory leak in ssltest

The new Rand usage of Thread API exposed a bug in ssltest. ssltest "cheats"
and uses internal headers to directly call functions that normally you
wouldn't be able to do. This means that auto-init doesn't happen, and
therefore auto-deinit doesn't happen either, meaning that the new rand locks
don't get cleaned up properly.
Reviewed-by: NRich Salz <rsalz@openssl.org>
上级 8eed7e87
...@@ -3617,6 +3617,12 @@ static int do_test_cipherlist(void) ...@@ -3617,6 +3617,12 @@ static int do_test_cipherlist(void)
int i = 0; int i = 0;
const SSL_METHOD *meth; const SSL_METHOD *meth;
const SSL_CIPHER *ci, *tci = NULL; const SSL_CIPHER *ci, *tci = NULL;
/*
* This is required because ssltest "cheats" and uses internal headers to
* call functions, thus avoiding auto-init
*/
OPENSSL_init_crypto(0, NULL);
#endif #endif
#ifndef OPENSSL_NO_SSL3 #ifndef OPENSSL_NO_SSL3
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册