Don't use *from++ in tolower as this is implemented as a macro on some
authorDr. Stephen Henson <steve@openssl.org>
Fri, 2 Sep 2011 11:28:27 +0000 (11:28 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 2 Sep 2011 11:28:27 +0000 (11:28 +0000)
platforms. Thanks to Shayne Murray <Shayne.Murray@Polycom.com> for
reporting this issue.

crypto/asn1/x_name.c

index caa4409..063bf7c 100644 (file)
@@ -464,7 +464,8 @@ static int asn1_string_canon(ASN1_STRING *out, ASN1_STRING *in)
                        }
                else
                        {
-                       *to++ = tolower(*from++);
+                       *to++ = tolower(*from);
+                       from++;
                        i++;
                        }
                }