Commit eebeb52b authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Update length if copying MSB set in asn1_string_canon().

parent 6ec6cfc7
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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))
			{