From: Remi Tricot-Le Breton Date: Wed, 15 Oct 2025 16:01:31 +0000 (+0200) Subject: BUG/MINOR: ssl: Remove unreachable code in CLI function X-Git-Tag: v3.3-dev11~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=89b43740e3fd2721c6b5265b473a2ffc1e986e0b;p=thirdparty%2Fhaproxy.git BUG/MINOR: ssl: Remove unreachable code in CLI function Remove unreachable code in 'cli_parse_show_jwt' function. This bug was raised in GitHub #3159. This patch does not need to be backported. --- diff --git a/src/ssl_ckch.c b/src/ssl_ckch.c index bc0f3d43d..afd577d61 100644 --- a/src/ssl_ckch.c +++ b/src/ssl_ckch.c @@ -2505,10 +2505,6 @@ static int cli_parse_show_jwt(char **args, char *payload, struct appctx *appctx, return cli_err(appctx, "Can't show!\nOperations on certificates are currently locked!\n"); return 0; - -error: - HA_SPIN_UNLOCK(CKCH_LOCK, &ckch_lock); - return cli_err(appctx, "Can't display the certificate: Not found or the certificate is a bundle!\n"); } /* IO handler of "show ssl jwt".