Skip to content

Commit

Permalink
Update from HEAD.
Browse files Browse the repository at this point in the history
  • Loading branch information
snhenson committed Mar 1, 2006
1 parent 8bd0c77 commit 81418b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crypto/evp/evp_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 81418b7

Please sign in to comment.