mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-26 12:58:03 +00:00
BUG/MAJOR: threads/server: missing unlock in CLI fqdn parser
This one didn't properly unlock before returning an error message.
This commit is contained in:
parent
1cd153aa89
commit
2a858a82ec
@ -4202,6 +4202,7 @@ static int cli_parse_set_server(char **args, struct appctx *appctx, void *privat
|
|||||||
if (!*args[4]) {
|
if (!*args[4]) {
|
||||||
appctx->ctx.cli.msg = "set server <b>/<s> fqdn requires a FQDN.\n";
|
appctx->ctx.cli.msg = "set server <b>/<s> fqdn requires a FQDN.\n";
|
||||||
appctx->st0 = CLI_ST_PRINT;
|
appctx->st0 = CLI_ST_PRINT;
|
||||||
|
SPIN_UNLOCK(SERVER_LOCK, &sv->lock);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
warning = update_server_fqdn(sv, args[4], "stats socket command", 0);
|
warning = update_server_fqdn(sv, args[4], "stats socket command", 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user