projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
RT2465: Silence some gcc warnings
[openssl.git]
/
crypto
/
mdc2
/
mdc2_one.c
diff --git
a/crypto/mdc2/mdc2_one.c
b/crypto/mdc2/mdc2_one.c
index cd569aa865a6c3c7260b30c4437dcb3506410704..72647f67ede4ee05b5b11d261b22587f7ad296e7 100644
(file)
--- a/
crypto/mdc2/mdc2_one.c
+++ b/
crypto/mdc2/mdc2_one.c
@@
-66,7
+66,8
@@
unsigned char *MDC2(const unsigned char *d, size_t n, unsigned char *md)
static unsigned char m[MDC2_DIGEST_LENGTH];
if (md == NULL) md=m;
- MDC2_Init(&c);
+ if (!MDC2_Init(&c))
+ return NULL;
MDC2_Update(&c,d,n);
MDC2_Final(md,&c);
OPENSSL_cleanse(&c,sizeof(c)); /* security consideration */