summaryrefslogtreecommitdiff
path: root/usr/src/common/openssl/crypto/md4/md4_one.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/common/openssl/crypto/md4/md4_one.c')
-rw-r--r--usr/src/common/openssl/crypto/md4/md4_one.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/src/common/openssl/crypto/md4/md4_one.c b/usr/src/common/openssl/crypto/md4/md4_one.c
index 00565507e4..bb64362638 100644
--- a/usr/src/common/openssl/crypto/md4/md4_one.c
+++ b/usr/src/common/openssl/crypto/md4/md4_one.c
@@ -65,13 +65,14 @@
#include <openssl/ebcdic.h>
#endif
-unsigned char *MD4(const unsigned char *d, unsigned long n, unsigned char *md)
+unsigned char *MD4(const unsigned char *d, size_t n, unsigned char *md)
{
MD4_CTX c;
static unsigned char m[MD4_DIGEST_LENGTH];
if (md == NULL) md=m;
- MD4_Init(&c);
+ if (!MD4_Init(&c))
+ return NULL;
#ifndef CHARSET_EBCDIC
MD4_Update(&c,d,n);
#else