diff options
Diffstat (limited to 'src/lib/libssl/src/crypto/md5/md5_one.c')
-rw-r--r-- | src/lib/libssl/src/crypto/md5/md5_one.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libssl/src/crypto/md5/md5_one.c b/src/lib/libssl/src/crypto/md5/md5_one.c index c5dd2d81db..44c6c455d1 100644 --- a/src/lib/libssl/src/crypto/md5/md5_one.c +++ b/src/lib/libssl/src/crypto/md5/md5_one.c | |||
@@ -71,7 +71,8 @@ unsigned char *MD5(const unsigned char *d, unsigned long n, unsigned char *md) | |||
71 | static unsigned char m[MD5_DIGEST_LENGTH]; | 71 | static unsigned char m[MD5_DIGEST_LENGTH]; |
72 | 72 | ||
73 | if (md == NULL) md=m; | 73 | if (md == NULL) md=m; |
74 | MD5_Init(&c); | 74 | if (!MD5_Init(&c)) |
75 | return NULL; | ||
75 | #ifndef CHARSET_EBCDIC | 76 | #ifndef CHARSET_EBCDIC |
76 | MD5_Update(&c,d,n); | 77 | MD5_Update(&c,d,n); |
77 | #else | 78 | #else |