#1683 arithmetic bug in the SSSD causes netgroup midpoint refresh to be always set to 10 seconds
Closed: Fixed None by jhrozek. Opened 6 years ago by jhrozek.

The code uses:

lifetime = dom->netgroup_timeout *
                (step_ctx->nctx->cache_refresh_percent / 100);

As both arguments of the division are int, the result is always 0 and we always hit the "fallback" condition that sets the midpoint refresh to 10 seconds.

The code should read something like:

lifetime = dom->netgroup_timeout *
                (step_ctx->nctx->cache_refresh_percent / 100.0);

Fields changed

owner: somebody => jhrozek
status: new => assigned

Fields changed

patch: 0 => 1

milestone: NEEDS_TRIAGE => SSSD 1.9.3
resolution: => fixed
status: assigned => closed

Metadata Update from @jhrozek:
- Issue assigned to jhrozek
- Issue set to the milestone: SSSD 1.9.3

2 years ago

Login to comment on this ticket.

Metadata