From: Dr. Stephen Henson Date: Wed, 9 Dec 2009 15:02:14 +0000 (+0000) Subject: Add patch to crypto/evp which didn't apply from PR#2124 X-Git-Tag: OpenSSL_1_0_0-beta5~56 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a6d204e2417d40ec1bc617f4083a6a43db4daed7;p=oweals%2Fopenssl.git Add patch to crypto/evp which didn't apply from PR#2124 --- diff --git a/crypto/evp/digest.c b/crypto/evp/digest.c index d6abcfe1d6..bd520456b1 100644 --- a/crypto/evp/digest.c +++ b/crypto/evp/digest.c @@ -203,6 +203,12 @@ int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl) { ctx->update = type->update; 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