mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 12:41:00 +02:00
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:
parent
7482b6ebf0
commit
89b43740e3
@ -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".
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user