mirror of
https://github.com/openssl/openssl.git
synced 2024-12-18 22:43:41 +08:00
set string type when embedding
Reviewed-by: Tim Hudson <tjh@openssl.org>
This commit is contained in:
parent
eb05f17344
commit
7f3e6f8c24
@ -352,6 +352,7 @@ static int asn1_primitive_new(ASN1_VALUE **pval, const ASN1_ITEM *it,
|
||||
if (embed) {
|
||||
str = *(ASN1_STRING **)pval;
|
||||
memset(str, 0, sizeof(*str));
|
||||
str->type = utype;
|
||||
str->flags = ASN1_STRING_FLAG_EMBED;
|
||||
} else {
|
||||
str = ASN1_STRING_type_new(utype);
|
||||
|
Loading…
Reference in New Issue
Block a user