Add patch to crypto/evp which didn't apply from PR#2124
This commit is contained in:
parent
941baf6641
commit
a6d204e241
@ -203,6 +203,12 @@ int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl)
|
|||||||
{
|
{
|
||||||
ctx->update = type->update;
|
ctx->update = type->update;
|
||||||
ctx->md_data=OPENSSL_malloc(type->ctx_size);
|
ctx->md_data=OPENSSL_malloc(type->ctx_size);
|
||||||
|
if (ctx->md_data == NULL)
|
||||||
|
{
|
||||||
|
EVPerr(EVP_F_EVP_DIGESTINIT_EX,
|
||||||
|
ERR_R_MALLOC_FAILURE);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifndef OPENSSL_NO_ENGINE
|
#ifndef OPENSSL_NO_ENGINE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user