diff options
author | Matt Caswell <matt@openssl.org> | 2016-02-09 23:09:44 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-02-09 23:29:31 +0000 |
commit | b7326ea7106955a7a5b8190fb19c982b49b7c821 (patch) | |
tree | ffb1f036ac3f322aa3b2ea90b3344f839463287c /crypto/include | |
parent | 38a6d7f89a6d060b7d463cbdd15eada434bb2d69 (diff) | |
download | openssl-b7326ea7106955a7a5b8190fb19c982b49b7c821.tar.gz |
NULL the thread_local_inits_st pointer after use
After the final use of the thread_local_inits_st we should ensure it is
set to NULL, just in case OPENSSL_INIT_thread_stop gets called again and
it tries to use garbage.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/include')
-rw-r--r-- | crypto/include/internal/cryptlib_int.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/include/internal/cryptlib_int.h b/crypto/include/internal/cryptlib_int.h index 36c0a10e03..0e457623ff 100644 --- a/crypto/include/internal/cryptlib_int.h +++ b/crypto/include/internal/cryptlib_int.h @@ -63,7 +63,7 @@ struct thread_local_inits_st { int async; int err_state; }; -void *ossl_init_get_thread_local(int alloc); + int ossl_init_thread_start(uint64_t opts); /* * OPENSSL_INIT flags. The primary list of these is in crypto.h. Flags below |