summaryrefslogtreecommitdiff
path: root/lib/libcrypto/ripemd/rmd_one.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcrypto/ripemd/rmd_one.c')
-rw-r--r--lib/libcrypto/ripemd/rmd_one.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libcrypto/ripemd/rmd_one.c b/lib/libcrypto/ripemd/rmd_one.c
index f8b580c33a3..b88446b267b 100644
--- a/lib/libcrypto/ripemd/rmd_one.c
+++ b/lib/libcrypto/ripemd/rmd_one.c
@@ -68,7 +68,8 @@ unsigned char *RIPEMD160(const unsigned char *d, unsigned long 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 */