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.
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;
}