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.
This commit is contained in:
Remi Tricot-Le Breton 2025-10-15 18:01:31 +02:00 committed by William Lallemand
parent 7482b6ebf0
commit 89b43740e3

View 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".