diff --git a/crypto/asn1/x_name.c b/crypto/asn1/x_name.c index 9b0cf15d4..07137ee91 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)) {