mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-11 09:52:56 -04:00
BUG/MINOR: cli: forward the whole command on master CLI
A bug occurs when the CLI proxy of the master received a command which is prefixed by some spaces but without a routing prefix (@). In this case the pcli_parse_request() was returning a wrong number of data to forward. The response analyzer was called twice and the prompt displayed twice.
This commit is contained in:
parent
ce487aab46
commit
744de5b52a
1 changed files with 1 additions and 1 deletions
|
|
@ -1766,7 +1766,7 @@ int pcli_parse_request(struct channel *req, int *target_pid)
|
|||
if (*pfx_b != '@') {
|
||||
/* there is no prefix */
|
||||
pfx_b = NULL;
|
||||
cmd_b = ptr;
|
||||
cmd_b = input; /* if no prefix we don't trim anything */
|
||||
state = PCLI_REQ_CMD;
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue