Free SSL_CTX after BIO

This commit is contained in:
Dr. Stephen Henson 2009-09-30 21:35:26 +00:00
parent 0cc0db32e3
commit bc8c5fe58d

View File

@ -1385,10 +1385,10 @@ OCSP_RESPONSE *process_responder(BIO *err, OCSP_REQUEST *req,
if (!resp) if (!resp)
BIO_printf(bio_err, "Error querying OCSP responsder\n"); BIO_printf(bio_err, "Error querying OCSP responsder\n");
end: end:
if (ctx)
SSL_CTX_free(ctx);
if (cbio) if (cbio)
BIO_free_all(cbio); BIO_free_all(cbio);
if (ctx)
SSL_CTX_free(ctx);
return resp; return resp;
} }