diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/md2/Makefile | 2 | ||||
| -rw-r--r-- | src/lib/libcrypto/md2/md2_one.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libcrypto/md2/Makefile b/src/lib/libcrypto/md2/Makefile index 90628511da..9d0351bb2f 100644 --- a/src/lib/libcrypto/md2/Makefile +++ b/src/lib/libcrypto/md2/Makefile | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | # | 1 | # |
| 2 | # SSLeay/crypto/md/Makefile | 2 | # OpenSSL/crypto/md/Makefile |
| 3 | # | 3 | # |
| 4 | 4 | ||
| 5 | DIR= md2 | 5 | DIR= md2 |
diff --git a/src/lib/libcrypto/md2/md2_one.c b/src/lib/libcrypto/md2/md2_one.c index 835160ef56..8c36ba5779 100644 --- a/src/lib/libcrypto/md2/md2_one.c +++ b/src/lib/libcrypto/md2/md2_one.c | |||
| @@ -69,7 +69,8 @@ unsigned char *MD2(const unsigned char *d, unsigned long n, unsigned char *md) | |||
| 69 | static unsigned char m[MD2_DIGEST_LENGTH]; | 69 | static unsigned char m[MD2_DIGEST_LENGTH]; |
| 70 | 70 | ||
| 71 | if (md == NULL) md=m; | 71 | if (md == NULL) md=m; |
| 72 | MD2_Init(&c); | 72 | if (!MD2_Init(&c)) |
| 73 | return NULL; | ||
| 73 | #ifndef CHARSET_EBCDIC | 74 | #ifndef CHARSET_EBCDIC |
| 74 | MD2_Update(&c,d,n); | 75 | MD2_Update(&c,d,n); |
| 75 | #else | 76 | #else |
