Free SSL_CTX after BIO

This commit is contained in:
Dr. Stephen Henson 2009-09-30 21:36:17 +00:00
parent a0b3e0de6c
commit 37fc562bd8

View File

@ -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;
}