summaryrefslogtreecommitdiff
path: root/crypto/ripemd
diff options
context:
space:
mode:
authorsteve <steve>2005-04-14 22:58:42 +0000
committersteve <steve>2005-04-14 22:58:42 +0000
commit55c6702e0f5afafd226ca7655906d11e63525b9a (patch)
treec2fb55db3a4537bdb2e313264c36ade381edacf4 /crypto/ripemd
parentb4697b358c53f9918472588e6c89c12cee3dba6f (diff)
downloadopenssl-55c6702e0f5afafd226ca7655906d11e63525b9a.tar.gz
Check return values of <Digest>_Init functions in low level digest calls.
Diffstat (limited to 'crypto/ripemd')
-rw-r--r--crypto/ripemd/rmd_one.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/ripemd/rmd_one.c b/crypto/ripemd/rmd_one.c
index bfc4d83fe..3efb13758 100644
--- a/crypto/ripemd/rmd_one.c
+++ b/crypto/ripemd/rmd_one.c
@@ -68,7 +68,8 @@ unsigned char *RIPEMD160(const unsigned char *d, size_t n,
static unsigned char m[RIPEMD160_DIGEST_LENGTH];
if (md == NULL) md=m;
- RIPEMD160_Init(&c);
+ if (!RIPEMD160_Init(&c))
+ return NULL;
RIPEMD160_Update(&c,d,n);
RIPEMD160_Final(md,&c);
OPENSSL_cleanse(&c,sizeof(c)); /* security consideration */