]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: ssl: Remove unreachable code in CLI function
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Wed, 15 Oct 2025 16:01:31 +0000 (18:01 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 28 Oct 2025 09:44:51 +0000 (10:44 +0100)
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

index bc0f3d43d7c675ce98841c0477fe0bbd50663cf1..afd577d61cfc949486f96a30c1e7e1427d766471 100644 (file)
@@ -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".