#1683 arithmetic bug in the SSSD causes netgroup midpoint refresh to be always set to 10 seconds
Closed: Fixed Opened 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);

Ticket has been cloned to Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=882290

rhbz: => [https://bugzilla.redhat.com/show_bug.cgi?id=882290 882290]

Fields changed

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

Fields changed

patch: 0 => 1

  • master: 30812cdfb92923c8d062a5db989015c676a87f07
  • sssd-1-9: 83c5a0123f8d473d46091ee0d41a9ed019c78b6c

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

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/2725

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata