From: Dr. Stephen Henson Date: Wed, 30 Sep 2009 21:36:17 +0000 (+0000) Subject: Free SSL_CTX after BIO X-Git-Tag: OpenSSL-fips-2_0-rc1~1521 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=37fc562bd818cfd58aabbc7e207eb32081fb7f01;p=oweals%2Fopenssl.git Free SSL_CTX after BIO --- diff --git a/apps/ocsp.c b/apps/ocsp.c index 03944c0757..173a67b4c4 100644 --- a/apps/ocsp.c +++ b/apps/ocsp.c @@ -1385,10 +1385,10 @@ OCSP_RESPONSE *process_responder(BIO *err, OCSP_REQUEST *req, if (!resp) BIO_printf(bio_err, "Error querying OCSP responsder\n"); end: - if (ctx) - SSL_CTX_free(ctx); if (cbio) BIO_free_all(cbio); + if (ctx) + SSL_CTX_free(ctx); return resp; }