On Mon, Dec 05, 2005, Matthew Rodriguez DSD staff wrote:

> 
> I'll have to step through these 2 cases more carefully. I see that 
> X509_EXTENSION_free
> and PROXY_CERT_INFO_EXTENSION_free both go through the ASN1_item free, 
> and ASN1_item_combine_free
> but somewhere after that they go through different codepaths.
> 

Well this:

>       PROXY_CERT_INFO_EXTENSION_free((PROXY_CERT_INFO_EXTENSION *)ext); */

will crash because 'ext' isn't a pointer to a PROXY_CERT_INFO_EXTENSION
structure.

I notice you are doing:

>       lhash = lh_new(NULL, NULL); 

have you tried lh_free()? In fact you don't need an LHASH for this type of
extension in the way you use it so you should be able to pass it as NULL. In
fact you can avoid X509V3_CTX as well and pass that as NULL.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to