diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2001-02-16 01:35:44 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2001-02-16 01:35:44 +0000 |
commit | a6b7ffddac43c0805d02e7236034308f39bcd183 (patch) | |
tree | b2644cd3df4422d7981dafd66db1a529c9cc66d6 /crypto/asn1/tasn_new.c | |
parent | f30d34f3a8f6dbdf33d01967e2671bfa90552728 (diff) |
New options to 'ca' utility to support CRL entry extensions.
Add revelant new X509V3 extensions.
Add OIDs.
Fix ASN1 memory leak code to pop info if external allocation used.
Diffstat (limited to 'crypto/asn1/tasn_new.c')
-rw-r--r-- | crypto/asn1/tasn_new.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/asn1/tasn_new.c b/crypto/asn1/tasn_new.c index 3371dd13a7..798f9bfd5e 100644 --- a/crypto/asn1/tasn_new.c +++ b/crypto/asn1/tasn_new.c @@ -154,7 +154,12 @@ static int asn1_item_ex_combine_new(ASN1_VALUE **pval, const ASN1_ITEM *it, int if(asn1_cb) { i = asn1_cb(ASN1_OP_NEW_PRE, pval, it); if(!i) goto auxerr; - if(i==2) return 1; + if(i==2) { +#ifdef CRYPTO_MDEBUG + if(it->sname) CRYPTO_pop_info(); +#endif + return 1; + } } if(!combine) { *pval = OPENSSL_malloc(it->size); |