4
0
mirror of https://github.com/QuasarApp/openssl.git synced 2025-05-10 00:19:40 +00:00

afalg: add a NULL pointer check

Fixes 

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/13261)
This commit is contained in:
Pauli 2020-10-28 19:35:38 +10:00 committed by Dmitry Belyavskiy
parent 648cf9249e
commit 728d03b576

@ -681,6 +681,9 @@ static cbc_handles *get_cipher_handle(int nid)
static const EVP_CIPHER *afalg_aes_cbc(int nid)
{
cbc_handles *cipher_handle = get_cipher_handle(nid);
if (cipher_handle == NULL)
return NULL;
if (cipher_handle->_hidden == NULL
&& ((cipher_handle->_hidden =
EVP_CIPHER_meth_new(nid,