If we've not been inited don't deinit
authorMatt Caswell <matt@openssl.org>
Wed, 10 Feb 2016 09:47:51 +0000 (09:47 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 10 Feb 2016 12:03:07 +0000 (12:03 +0000)
commitdeca5df2fb879aa8763c54ab230dc6da940da9d0
tree4e43cbf77348cd7069a2be912873a36e5642dc24
parent740b2b9a6cf31b02916a4d18f868e8a95934c083
If we've not been inited don't deinit

If you call an explicit deinit when we've not been inited then a seg
fault can occur. We should check that we've been inited before attempting
to deinit.

Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/init.c