diff options
author | Ondrej Kos <okos@redhat.com> | 2012-10-04 10:59:27 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-10-04 19:43:23 +0200 |
commit | 88a7086faa86464670c0d9097ea22a7c774682ad (patch) | |
tree | cdfaa5409c930db82bbd745b2d2984ddf2e9b51c /src | |
parent | 8fe574521b7f8b14e17aea1d9afb471b80761b83 (diff) | |
download | sssd-88a7086faa86464670c0d9097ea22a7c774682ad.tar.gz sssd-88a7086faa86464670c0d9097ea22a7c774682ad.tar.bz2 sssd-88a7086faa86464670c0d9097ea22a7c774682ad.zip |
Slices calculation is alway wrong for default values
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/ldap/sdap_idmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/ldap/sdap_idmap.c b/src/providers/ldap/sdap_idmap.c index 94170e54..9ace11b5 100644 --- a/src/providers/ldap/sdap_idmap.c +++ b/src/providers/ldap/sdap_idmap.c @@ -211,8 +211,8 @@ sdap_idmap_add_domain(struct sdap_idmap_ctx *idmap_ctx, return EINVAL; } - max_slices = (idmap_upper - idmap_lower + 1) / rangesize; - if (((idmap_upper - idmap_lower + 1) % rangesize) != 0) { + max_slices = (idmap_upper - idmap_lower) / rangesize; + if (((idmap_upper - idmap_lower) % rangesize) != 0) { DEBUG(SSSDBG_CONF_SETTINGS, ("Range size does not divide evenly. Uppermost range will " "not be used\n")); |