From: Dr. Stephen Henson Date: Mon, 16 Feb 2009 21:42:48 +0000 (+0000) Subject: PR: 1843 X-Git-Tag: OpenSSL_0_9_8k^2~30 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b5d5c0a21f8fde538ad71bc024cba442ed44ba8d;p=oweals%2Fopenssl.git PR: 1843 Use correct array size for SHA1 hash. --- diff --git a/crypto/x509/x509_cmp.c b/crypto/x509/x509_cmp.c index ee234b04ad..306d4b2d73 100644 --- a/crypto/x509/x509_cmp.c +++ b/crypto/x509/x509_cmp.c @@ -201,7 +201,7 @@ int X509_NAME_cmp(const X509_NAME *a, const X509_NAME *b) unsigned long X509_NAME_hash(X509_NAME *x) { unsigned long ret=0; - unsigned char md[16]; + unsigned char md[SHA_DIGEST_LENGTH]; /* Make sure X509_NAME structure contains valid cached encoding */ i2d_X509_NAME(x,NULL);