projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
941baf6
)
Add patch to crypto/evp which didn't apply from PR#2124
author
Dr. Stephen Henson
<steve@openssl.org>
Wed, 9 Dec 2009 15:02:14 +0000
(15:02 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Wed, 9 Dec 2009 15:02:14 +0000
(15:02 +0000)
crypto/evp/digest.c
patch
|
blob
|
history
diff --git
a/crypto/evp/digest.c
b/crypto/evp/digest.c
index d6abcfe1d6604a47e9b21a859452075ccbeb5a0d..bd520456b160147309c2bb430b3e7b2841d6ea2f 100644
(file)
--- 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