diff options
author | Matt Caswell <matt@openssl.org> | 2018-02-26 19:34:42 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2018-02-26 23:13:56 +0000 |
commit | 34ff74eb183519ccedf11c97e754450469707951 (patch) | |
tree | a44c12eaa7f56f7ae46a30620723d723af36ed39 | |
parent | 5839185cdd9b339ff741da437d964a25e72a3fb6 (diff) | |
download | openssl-34ff74eb183519ccedf11c97e754450469707951.zip openssl-34ff74eb183519ccedf11c97e754450469707951.tar.gz openssl-34ff74eb183519ccedf11c97e754450469707951.tar.bz2 |
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)
-rw-r--r-- | test/sslapitest.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/sslapitest.c b/test/sslapitest.c index 1cf5c4f..6480885 100644 --- a/test/sslapitest.c +++ b/test/sslapitest.c @@ -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); |