]> granicus.if.org Git - openssl/commit
Fix a crash in EVP_CIPHER_CTX_cleanup due to cipher_data may be NULL
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Sat, 24 Dec 2016 16:08:27 +0000 (17:08 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 7 Feb 2017 09:19:16 +0000 (09:19 +0000)
commit1222d273d36277f56c3603a757240c386d55f318
tree7d9180f99b29ff5fcb1fbedc6a32cb07f9fe22d2
parent748cb9a17f4f2b77aad816cf658cd4025dc847ee
Fix a crash in EVP_CIPHER_CTX_cleanup due to cipher_data may be NULL
or EVP_CTRL_INIT/EVP_CTRL_COPY was not called or failed.
- if that happens set cipher = NULL.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2149)
crypto/evp/evp_enc.c