projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb05f17
)
set string type when embedding
author
Dr. Stephen Henson
<steve@openssl.org>
Sat, 17 Oct 2015 23:54:13 +0000
(
00:54
+0100)
committer
Dr. Stephen Henson
<steve@openssl.org>
Sun, 18 Oct 2015 11:13:54 +0000
(12:13 +0100)
Reviewed-by: Tim Hudson <tjh@openssl.org>
crypto/asn1/tasn_new.c
patch
|
blob
|
history
diff --git
a/crypto/asn1/tasn_new.c
b/crypto/asn1/tasn_new.c
index 33a8e97442ec19684d7d030a28d2af41105f79c0..6a2ad62d70c37d9f9206e0f8d1577e654ec9e62b 100644
(file)
--- a/
crypto/asn1/tasn_new.c
+++ b/
crypto/asn1/tasn_new.c
@@
-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);