projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't use *from++ in tolower as this is implemented as a macro on some
[openssl.git]
/
crypto
/
asn1
/
x_name.c
diff --git
a/crypto/asn1/x_name.c
b/crypto/asn1/x_name.c
index c6658d7affac55c22589c146973842f9f85f865c..063bf7c16bfbe0490aa6c9d6aaf7a180be6b8173 100644
(file)
--- a/
crypto/asn1/x_name.c
+++ b/
crypto/asn1/x_name.c
@@
-400,6
+400,7
@@
static int asn1_string_canon(ASN1_STRING *out, ASN1_STRING *in)
out->type = in->type;
if (!ASN1_STRING_set(out, in->data, in->length))
return 0;
+ return 1;
}
out->type = V_ASN1_UTF8STRING;
@@
-463,7
+464,8
@@
static int asn1_string_canon(ASN1_STRING *out, ASN1_STRING *in)
}
else
{
- *to++ = tolower(*from++);
+ *to++ = tolower(*from);
+ from++;
i++;
}
}