mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-05 21:11:53 +00:00
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:
parent
51dbb4cb79
commit
71237a1457
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user