summaryrefslogtreecommitdiffstats
path: root/src/providers
diff options
context:
space:
mode:
authorOndrej Kos <okos@redhat.com>2012-10-04 10:59:27 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-10-04 19:43:23 +0200
commit88a7086faa86464670c0d9097ea22a7c774682ad (patch)
treecdfaa5409c930db82bbd745b2d2984ddf2e9b51c /src/providers
parent8fe574521b7f8b14e17aea1d9afb471b80761b83 (diff)
downloadsssd-88a7086faa86464670c0d9097ea22a7c774682ad.tar.gz
sssd-88a7086faa86464670c0d9097ea22a7c774682ad.tar.xz
sssd-88a7086faa86464670c0d9097ea22a7c774682ad.zip
Slices calculation is alway wrong for default values
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/ldap/sdap_idmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/ldap/sdap_idmap.c b/src/providers/ldap/sdap_idmap.c
index 94170e54a..9ace11b5c 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"));