BUG/MINOR: ssl: Remove unneeded pointer check in ocsp cli release function

The ctx pointer cannot be NULL so we can remove the check.

This patch fixes GitHub issue #1996.
It does not need to be backported.
This commit is contained in:
Remi Tricot-Le Breton 2023-01-10 11:21:40 +01:00 committed by William Lallemand
parent 51dbb4cb79
commit 71237a1457

View File

@ -1432,8 +1432,7 @@ static void cli_release_update_ocsp_response(struct appctx *appctx)
struct ocsp_cli_ctx *ctx = appctx->svcctx;
struct httpclient *hc = ctx->hc;
if (ctx)
X509_free(ctx->ocsp_issuer);
X509_free(ctx->ocsp_issuer);
/* Everything possible was printed on the CLI, we can destroy the client */
httpclient_stop_and_destroy(hc);