summaryrefslogtreecommitdiffstats
path: root/crypto/asn1/a_strnid.c
diff options
context:
space:
mode:
authorFdaSilvaYY <fdasilvayy@gmail.com>2016-03-06 21:26:46 +0100
committerRich Salz <rsalz@openssl.org>2016-05-31 16:58:22 -0400
commitf792c663048f19347a1bb72125e535e4fb2ecf39 (patch)
tree25daffc37eefdaa14ddf72ab705421bba7441d74 /crypto/asn1/a_strnid.c
parentfd785ca8921af85b00755fd1ce3cfe460edb2f95 (diff)
Fix some missing inits
Backport of 8e89e85f556f549f05d3b49f5408a217ac5e3700 From PR #1019 / #997 Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/1019)
Diffstat (limited to 'crypto/asn1/a_strnid.c')
-rw-r--r--crypto/asn1/a_strnid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/asn1/a_strnid.c b/crypto/asn1/a_strnid.c
index 5224345368..2d2303d859 100644
--- a/crypto/asn1/a_strnid.c
+++ b/crypto/asn1/a_strnid.c
@@ -250,6 +250,7 @@ int ASN1_STRING_TABLE_add(int nid,
}
tmp->flags = flags | STABLE_FLAGS_MALLOC;
tmp->nid = nid;
+ tmp->minsize = tmp->maxsize = -1;
new_nid = 1;
} else
tmp->flags = (tmp->flags & STABLE_FLAGS_MALLOC) | flags;