From: Dr. Stephen Henson Date: Fri, 22 Sep 2006 13:37:15 +0000 (+0000) Subject: Update length if copying MSB set in asn1_string_canon(). X-Git-Tag: OpenSSL_0_9_8k^2~1129 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=eebeb52b29b512e82bdad789e844e3f0f391ac12;p=oweals%2Fopenssl.git Update length if copying MSB set in asn1_string_canon(). --- diff --git a/crypto/asn1/x_name.c b/crypto/asn1/x_name.c index 9b0cf15d4a..07137ee91e 100644 --- a/crypto/asn1/x_name.c +++ b/crypto/asn1/x_name.c @@ -428,7 +428,10 @@ static int asn1_string_canon(ASN1_STRING *out, ASN1_STRING *in) { /* If MSB set just copy across */ if (*from & 0x80) + { *to++ = *from++; + i++; + } /* Collapse multiple spaces */ else if (isspace(*from)) {