projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix d4a4370050f7d72239b92a60ab9d4a2dd5e9fd84
[oweals/openssl.git]
/
crypto
/
asn1
/
x_name.c
diff --git
a/crypto/asn1/x_name.c
b/crypto/asn1/x_name.c
index 49be08b4daab7d43ba4ccaebd5f164e261264cd9..d7c2318693f5aab79ba34885aeee1987e251d117 100644
(file)
--- a/
crypto/asn1/x_name.c
+++ b/
crypto/asn1/x_name.c
@@
-399,8
+399,7
@@
static int asn1_string_canon(ASN1_STRING *out, ASN1_STRING *in)
/* If type not in bitmask just copy string across */
if (!(ASN1_tag2bit(in->type) & ASN1_MASK_CANON))
{
- out->type = in->type;
- if (!ASN1_STRING_set(out, in->data, in->length))
+ if (!ASN1_STRING_copy(out, in))
return 0;
return 1;
}