summaryrefslogtreecommitdiff
path: root/crypto/md5/md5_one.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/md5/md5_one.c')
-rw-r--r--crypto/md5/md5_one.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/md5/md5_one.c b/crypto/md5/md5_one.c
index 9918243ea2..43fee89379 100644
--- a/crypto/md5/md5_one.c
+++ b/crypto/md5/md5_one.c
@@ -71,7 +71,8 @@ unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md)
static unsigned char m[MD5_DIGEST_LENGTH];
if (md == NULL) md=m;
- MD5_Init(&c);
+ if (!MD5_Init(&c))
+ return NULL;
#ifndef CHARSET_EBCDIC
MD5_Update(&c,d,n);
#else