winbind: Use idmap_config_const_string in idmap_init_domain
authorVolker Lendecke <vl@samba.org>
Sat, 18 Mar 2017 17:34:07 +0000 (18:34 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 20 Mar 2017 18:36:21 +0000 (19:36 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/winbindd/idmap.c

index 8971e7ffcf3878d226ff3def57059dd20b8a882f..d5471e9cdbae7296acfedd8a0fdfbfc326a72cd3 100644 (file)
@@ -398,7 +398,7 @@ static struct idmap_domain *idmap_init_domain(TALLOC_CTX *mem_ctx,
        }
 
        result->read_only = lp_parm_bool(-1, config_option, "read only", false);
-       range = lp_parm_const_string(-1, config_option, "range", NULL);
+       range = idmap_config_const_string(result->name, "range", NULL);
 
        talloc_free(config_option);