Only release thread-local key if we created it.
authorRich Salz <rsalz@openssl.org>
Wed, 31 May 2017 16:14:55 +0000 (12:14 -0400)
committerRich Salz <rsalz@openssl.org>
Wed, 31 May 2017 18:10:05 +0000 (14:10 -0400)
commit73bc53708c386c1ea85941d345721e23dc61c05c
tree9332814c9af5d4653c8ae94587532bd037963c5e
parent4a8ab10dd205b0f8527f993e608ebe1b032768eb
Only release thread-local key if we created it.

Thanks to Jan Alexander Steffens for finding the bug and confirming the
fix.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3592)
crypto/err/err.c