mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
afalg: add a NULL pointer check
Fixes #13260 Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from https://github.com/openssl/openssl/pull/13261)
This commit is contained in:
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,
|
||||
|
Loading…
Reference in New Issue
Block a user