diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2006-09-22 13:37:15 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2006-09-22 13:37:15 +0000 |
commit | eebeb52b29b512e82bdad789e844e3f0f391ac12 (patch) | |
tree | 7e89cf77a905f47fe6eb79ebb8fecbebd58065d0 | |
parent | 6ec6cfc7671b9c867903a18a25c32c87d2d1b7be (diff) |
Update length if copying MSB set in asn1_string_canon().
-rw-r--r-- | crypto/asn1/x_name.c | 3 |
1 files changed, 3 insertions, 0 deletions
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)) { |