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:05 +0000 (11:28 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 2 Sep 2011 11:28:05 +0000 (11:28 +0000)
platforms. Thanks to Shayne Murray <Shayne.Murray@Polycom.com> for
reporting this issue.

crypto/asn1/x_name.c

index caa4409feb2743e163ae5b981fcef0710683c6da..063bf7c16bfbe0490aa6c9d6aaf7a180be6b8173 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++;
                        }
                }