BUG/MINOR: cli: "show cli sockets" wouldn't list all processes

A small bug in "show cli sockets" made it limit the output to the first 8
processes only.
This commit is contained in:
Willy Tarreau 2016-12-16 12:50:55 +01:00
parent eceddf7225
commit 20c5e52ac7

View File

@ -799,7 +799,7 @@ static int cli_io_handler_show_cli_sock(struct appctx *appctx)
if (bind_conf->bind_proc != 0) {
int pos;
for (pos = 0; pos < sizeof(bind_conf->bind_proc); pos++) {
for (pos = 0; pos < 8 * sizeof(bind_conf->bind_proc); pos++) {
if (bind_conf->bind_proc & (1 << pos)) {
chunk_appendf(&trash, "%d,", pos+1);
}