summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source3/winbindd/idmap.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/winbindd/idmap.c b/source3/winbindd/idmap.c
index e62f477764..dc972fea00 100644
--- a/source3/winbindd/idmap.c
+++ b/source3/winbindd/idmap.c
@@ -238,9 +238,7 @@ static struct idmap_domain *idmap_init_domain(TALLOC_CTX *mem_ctx,
if (check_range) {
goto fail;
}
- }
-
- if (result->low_id > result->high_id) {
+ } else if (result->low_id > result->high_id) {
DEBUG(1, ("Error: invalid idmap range detected: %lu - %lu\n",
(unsigned long)result->low_id,
(unsigned long)result->high_id));