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:
Willy Tarreau 2017-11-05 09:58:01 +01:00
parent 1cd153aa89
commit 2a858a82ec

View File

@ -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);