From: Dr. Stephen Henson Date: Fri, 2 Sep 2011 11:28:18 +0000 (+0000) Subject: Don't use *from++ in tolower as this is implemented as a macro on some X-Git-Tag: OpenSSL_1_0_1-beta1~164 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=91e97cbe4c6d61bf3a2a2db207f4076c1d9b2dfd;p=oweals%2Fopenssl.git Don't use *from++ in tolower as this is implemented as a macro on some platforms. Thanks to Shayne Murray for reporting this issue. --- 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++; } }