diff options
author | FdaSilvaYY <fdasilvayy@gmail.com> | 2016-03-06 21:26:46 +0100 |
---|---|---|
committer | FdaSilvaYY <fdasilvayy@gmail.com> | 2016-05-29 01:36:11 +0200 |
commit | 8e89e85f556f549f05d3b49f5408a217ac5e3700 (patch) | |
tree | a85bd926047f78b5b77d5043dcffaa2172cf4b4c /crypto/asn1/tasn_scn.c | |
parent | 8640f21093ae02c838e183f04ea52f781b5c98d6 (diff) |
Fix some missing inits
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/997)
Diffstat (limited to 'crypto/asn1/tasn_scn.c')
-rw-r--r-- | crypto/asn1/tasn_scn.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/asn1/tasn_scn.c b/crypto/asn1/tasn_scn.c index 1bdd2dfec7..7062e2355f 100644 --- a/crypto/asn1/tasn_scn.c +++ b/crypto/asn1/tasn_scn.c @@ -25,12 +25,20 @@ ASN1_SCTX *ASN1_SCTX_new(int (*scan_cb) (ASN1_SCTX *ctx)) { ASN1_SCTX *ret; + ret = OPENSSL_malloc(sizeof(*ret)); if (ret == NULL) { ASN1err(ASN1_F_ASN1_SCTX_NEW, ERR_R_MALLOC_FAILURE); return NULL; } + ret->it = ret->tt = NULL; + ret->flags = 0; + ret->skidx = ret->depth = 0; + ret->sname = ret->fname = NULL; + ret->prim_type = 0; + ret->field = NULL; ret->scan_cb = scan_cb; + ret->app_data = NULL; return ret; } |