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:
8bd0c77
)
Update from HEAD.
author
Dr. Stephen Henson
<steve@openssl.org>
Wed, 1 Mar 2006 21:17:50 +0000
(21:17 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Wed, 1 Mar 2006 21:17:50 +0000
(21:17 +0000)
crypto/evp/evp_key.c
patch
|
blob
|
history
diff --git
a/crypto/evp/evp_key.c
b/crypto/evp/evp_key.c
index 0a27f496c9693837502c4490c67a5b5a6e7694f1..361ea69ab6d5fd685ca98dfb0f94de238988a9af 100644
(file)
--- a/
crypto/evp/evp_key.c
+++ b/
crypto/evp/evp_key.c
@@
-126,7
+126,8
@@
int EVP_BytesToKey(const EVP_CIPHER *type, const EVP_MD *md,
EVP_MD_CTX_init(&c);
for (;;)
{
- EVP_DigestInit_ex(&c,md, NULL);
+ if (!EVP_DigestInit_ex(&c,md, NULL))
+ return 0;
if (addmd++)
EVP_DigestUpdate(&c,&(md_buf[0]),mds);
EVP_DigestUpdate(&c,data,datal);