diff options
author | steve <steve> | 2005-04-14 22:58:42 +0000 |
---|---|---|
committer | steve <steve> | 2005-04-14 22:58:42 +0000 |
commit | 55c6702e0f5afafd226ca7655906d11e63525b9a (patch) | |
tree | c2fb55db3a4537bdb2e313264c36ade381edacf4 /crypto/ripemd | |
parent | b4697b358c53f9918472588e6c89c12cee3dba6f (diff) | |
download | openssl-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.c | 3 |
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 */ |