提交 34ff74eb 编写于 作者: M Matt Caswell

Clear some sslapitest global variables after use

Otherwise we get a use after free if the test order is randomised.
Reviewed-by: NRichard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5467)
上级 5839185c
......@@ -3227,6 +3227,7 @@ static int test_export_key_mat_early(int idx)
SSL_SESSION_free(sess);
SSL_SESSION_free(clientpsk);
SSL_SESSION_free(serverpsk);
clientpsk = serverpsk = NULL;
SSL_free(serverssl);
SSL_free(clientssl);
SSL_CTX_free(sctx);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册