summaryrefslogtreecommitdiff
path: root/app/openssl/crypto/asn1/x_name.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/openssl/crypto/asn1/x_name.c')
-rw-r--r--app/openssl/crypto/asn1/x_name.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/openssl/crypto/asn1/x_name.c b/app/openssl/crypto/asn1/x_name.c
index 49be08b4..d7c23186 100644
--- a/app/openssl/crypto/asn1/x_name.c
+++ b/app/openssl/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;
}