mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 12:04:38 +08:00
Clear some sslapitest global variables after use
Otherwise we get a use after free if the test order is randomised. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5467)
This commit is contained in:
parent
5839185cdd
commit
34ff74eb18
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user