mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-15 19:09:42 +00: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)
|
static const EVP_CIPHER *afalg_aes_cbc(int nid)
|
||||||
{
|
{
|
||||||
cbc_handles *cipher_handle = get_cipher_handle(nid);
|
cbc_handles *cipher_handle = get_cipher_handle(nid);
|
||||||
|
|
||||||
|
if (cipher_handle == NULL)
|
||||||
|
return NULL;
|
||||||
if (cipher_handle->_hidden == NULL
|
if (cipher_handle->_hidden == NULL
|
||||||
&& ((cipher_handle->_hidden =
|
&& ((cipher_handle->_hidden =
|
||||||
EVP_CIPHER_meth_new(nid,
|
EVP_CIPHER_meth_new(nid,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user