summaryrefslogtreecommitdiffstats
path: root/crypto/asn1
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-09-02 11:28:18 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-09-02 11:28:18 +0000
commit91e97cbe4c6d61bf3a2a2db207f4076c1d9b2dfd (patch)
tree30f41ae091e80664d277812a3807acdba89e876b /crypto/asn1
parent63ee3b32fe20f19716c61c0a1a15a0722d1648b2 (diff)
Don't use *from++ in tolower as this is implemented as a macro on some
platforms. Thanks to Shayne Murray <Shayne.Murray@Polycom.com> for reporting this issue.
Diffstat (limited to 'crypto/asn1')
-rw-r--r--crypto/asn1/x_name.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/asn1/x_name.c b/crypto/asn1/x_name.c
index caa4409feb..063bf7c16b 100644
--- a/crypto/asn1/x_name.c
+++ b/crypto/asn1/x_name.c
@@ -464,7 +464,8 @@ static int asn1_string_canon(ASN1_STRING *out, ASN1_STRING *in)
}
else
{
- *to++ = tolower(*from++);
+ *to++ = tolower(*from);
+ from++;
i++;
}
}