projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Check return values of <Digest>_Init functions in low level digest calls.
[openssl.git]
/
crypto
/
md5
/
md5_one.c
diff --git
a/crypto/md5/md5_one.c
b/crypto/md5/md5_one.c
index 9918243ea2f68e1e229f4e9d186d8a3fddb803bc..43fee89379634a4658887f2cc4e4abecebd22ac9 100644
(file)
--- 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