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.
diff --git a/src/ssl_ocsp.c b/src/ssl_ocsp.c
index 46dba88..017f018 100644
--- a/src/ssl_ocsp.c
+++ b/src/ssl_ocsp.c
@@ -1432,8 +1432,7 @@
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);