From: Volker Lendecke Date: Sat, 7 Jan 2017 14:55:41 +0000 (+0000) Subject: winbind: Use idmap_config_const_string in wb_xids2sids_add_dom X-Git-Tag: tdb-1.3.13~430 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6d33ebd5806afc430fe99e0a7efdf04a2288d794;p=thirdparty%2Fsamba.git winbind: Use idmap_config_const_string in wb_xids2sids_add_dom Signed-off-by: Volker Lendecke Reviewed-by: Michael Adam --- diff --git a/source3/winbindd/wb_xids2sids.c b/source3/winbindd/wb_xids2sids.c index 7ac199884c2..15e94c4203f 100644 --- a/source3/winbindd/wb_xids2sids.c +++ b/source3/winbindd/wb_xids2sids.c @@ -43,19 +43,11 @@ static bool wb_xids2sids_add_dom(const char *domname, struct wb_xids2sids_dom_map *map = NULL; size_t num_maps = talloc_array_length(dom_maps); size_t i; - char *config_option; const char *range; unsigned low_id, high_id; int ret; - config_option = talloc_asprintf( - talloc_tos(), "idmap config %s", domname); - if (config_option == NULL) { - return false; - } - range = lp_parm_const_string(-1, config_option, "range", NULL); - TALLOC_FREE(config_option); - + range = idmap_config_const_string(domname, "range", NULL); if (range == NULL) { DBG_DEBUG("No range for domain %s found\n", domname); return false;