mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-28 06:11:32 +01:00
BUG/MINOR: cli: "show cli sockets" would always report process 64
Another small bug in "show cli sockets" made the last fix always report process 64 due to a signedness issue in the shift operation when building the mask.
This commit is contained in:
parent
20c5e52ac7
commit
4305ac7f1d
@ -798,9 +798,8 @@ static int cli_io_handler_show_cli_sock(struct appctx *appctx)
|
||||
|
||||
if (bind_conf->bind_proc != 0) {
|
||||
int pos;
|
||||
|
||||
for (pos = 0; pos < 8 * sizeof(bind_conf->bind_proc); pos++) {
|
||||
if (bind_conf->bind_proc & (1 << pos)) {
|
||||
if (bind_conf->bind_proc & (1UL << pos)) {
|
||||
chunk_appendf(&trash, "%d,", pos+1);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user