NULL the thread_local_inits_st pointer after use
authorMatt Caswell <matt@openssl.org>
Tue, 9 Feb 2016 23:09:44 +0000 (23:09 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 9 Feb 2016 23:29:31 +0000 (23:29 +0000)
commitb7326ea7106955a7a5b8190fb19c982b49b7c821
treeffb1f036ac3f322aa3b2ea90b3344f839463287c
parent38a6d7f89a6d060b7d463cbdd15eada434bb2d69
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>
crypto/include/internal/cryptlib_int.h
crypto/init.c