Ignore NULL parameter in EVP_MD_CTX_destroy.
(cherry picked from commit a6c62f0c25
)
This commit is contained in:
parent
fc0503a25c
commit
560b34f2b0
@ -344,8 +344,11 @@ int EVP_Digest(const void *data, size_t count,
|
||||
|
||||
void EVP_MD_CTX_destroy(EVP_MD_CTX *ctx)
|
||||
{
|
||||
EVP_MD_CTX_cleanup(ctx);
|
||||
OPENSSL_free(ctx);
|
||||
if (ctx)
|
||||
{
|
||||
EVP_MD_CTX_cleanup(ctx);
|
||||
OPENSSL_free(ctx);
|
||||
}
|
||||
}
|
||||
|
||||
/* This call frees resources associated with the context */
|
||||
|
Loading…
Reference in New Issue
Block a user