summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap
diff options
context:
space:
mode:
Diffstat (limited to 'src/providers/ldap')
-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"));