From 65393a294e635822c1d7a15fe5853dc457ad8a2a Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 14 Jan 2013 12:22:22 -0500 Subject: Update main domain info in place --- src/providers/ipa/ipa_subdomains.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/providers') diff --git a/src/providers/ipa/ipa_subdomains.c b/src/providers/ipa/ipa_subdomains.c index 114bd26ef..385be1c38 100644 --- a/src/providers/ipa/ipa_subdomains.c +++ b/src/providers/ipa/ipa_subdomains.c @@ -756,7 +756,6 @@ static void ipa_subdomains_handler_ranges_done(struct tevent_req *req) size_t reply_count; struct sysdb_attrs **reply = NULL; struct ipa_subdomains_req_ctx *ctx; - struct sysdb_subdom *domain_info; struct range_info **range_list = NULL; struct sysdb_ctx *sysdb; struct sss_domain_info *domain; @@ -787,14 +786,14 @@ static void ipa_subdomains_handler_ranges_done(struct tevent_req *req) } - ret = sysdb_master_domain_get_info(ctx, sysdb, domain, &domain_info); + ret = sysdb_master_domain_update(domain); if (ret != EOK) { goto done; } - if (domain_info->flat_name == NULL || - domain_info->id == NULL || - domain_info->name == NULL) { + if (domain->flat_name == NULL || + domain->domain_id == NULL || + domain->realm == NULL) { ctx->search_base_iter = 0; ctx->search_bases = ctx->sd_ctx->master_search_bases; -- cgit