Hi Steve,
My code looks like this(error checking is omitted): OCSP_BASICRESP* bs = OCSP_response_get1_basic(resp); OCSP_check_nonce(req, bs); OCSP_basic_verify(bs, chain, store, verifyFlags); OCSP_resp_find_status(bs, id, &status, ...); if (resp!=NULL) OCSP_RESPONSE_free(resp); if (bs != NULL) OCSP_BASICRESP_free(bs); Do I need to explicitly free this OCSP_BASICRESP(does OCSP_response_get1_basic() return dup'ed data structure)? This code has been in our product for many years and this is the first time we saw this crash. Regards and Happy New Year! -binlu -----Original Message----- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Dr. Stephen Henson Sent: Monday, December 13, 2010 11:49 AM To: openssl-users@openssl.org Subject: Re: OCSP_BASICRESP_free() segmentation fault On Mon, Dec 13, 2010, Bin Lu wrote: > OK, let me look into this. > > But could you please let me know where these _free functions are defined, for > OCSP_BASICRESP_free(), OCS_RESPONSE_free(), OCSP_REQUEST_free()? > The actual definition is in crypto/ocsp/ocsp_asn.c but that wont help much because the FAQ: http://www.openssl.org/support/faq.html#PROG16 is relevant here. Steve. -- Dr Stephen N. Henson. OpenSSL project core developer. Commercial tech support now available see: http://www.openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org<mailto:majord...@openssl.org> On Thu, Dec 09, 2010, Bin Lu wrote: > Hi, > > I am getting the following crash in openssl-0.9.8d: > > #0 0x2332885e in ASN1_primitive_free () > #1 0x233288a4 in ASN1_primitive_free () > #2 0x23328935 in ASN1_primitive_free () > #3 0x23328b5a in ASN1_template_free () > #4 0x23328a74 in ASN1_primitive_free () > #5 0x23328b5a in ASN1_template_free () > #6 0x23328a74 in ASN1_primitive_free () > #7 0x23328b12 in ASN1_template_free () > #8 0x23328a74 in ASN1_primitive_free () > #9 0x23328b93 in ASN1_item_free () > #10 0x2335698d in OCSP_BASICRESP_free () >