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