crypto/init.c: improve destructor_key's portability.
authorAndy Polyakov <appro@openssl.org>
Thu, 16 Aug 2018 07:26:12 +0000 (09:26 +0200)
committerAndy Polyakov <appro@openssl.org>
Wed, 22 Aug 2018 19:47:39 +0000 (21:47 +0200)
commit8255fd0f4f86fa4202962d4b27185c0d96f21d75
tree8742f460afecbccf05c8582819762fce15b4ad15
parentb2a73156186ec436f584a565e6d4a98b75734286
crypto/init.c: improve destructor_key's portability.

It was assumed that CRYPTO_THREAD_LOCAL is universally scalar type,
which doesn't appear to hold true.

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/6976)

(cherry picked from commit 0b1319ba94c85af9e87308e0d573d1260a802f53)
crypto/init.c