From 89b43740e3fd2721c6b5265b473a2ffc1e986e0b Mon Sep 17 00:00:00 2001 From: Remi Tricot-Le Breton Date: Wed, 15 Oct 2025 18:01:31 +0200 Subject: [PATCH] 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. --- src/ssl_ckch.c | 4 ---- 1 file changed, 4 deletions(-) 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". -- 2.47.3