From 1e6f2180724de4722a5218826c9401181168d9d4 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sun, 6 Jan 2013 10:39:30 -0500 Subject: Remove the sysdb_ctx_get_domain() function. We are deprecating sysdb->domain so kill the function that gives access to this member as we should stop relying on it being available (or correct). --- src/providers/ipa/ipa_subdomains.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/providers/ipa/ipa_subdomains.c') diff --git a/src/providers/ipa/ipa_subdomains.c b/src/providers/ipa/ipa_subdomains.c index 0bf2e5d8..878b8979 100644 --- a/src/providers/ipa/ipa_subdomains.c +++ b/src/providers/ipa/ipa_subdomains.c @@ -688,14 +688,17 @@ static void ipa_subdomains_handler_done(struct tevent_req *req) struct ipa_subdomains_req_ctx *ctx; struct be_req *be_req; struct sysdb_ctx *sysdb; + struct sss_domain_info *domain; bool refresh_has_changes = false; ctx = tevent_req_callback_data(req, struct ipa_subdomains_req_ctx); be_req = ctx->be_req; if (be_req && be_req->sysdb) { sysdb = be_req->sysdb; + domain = be_req->domain; } else { sysdb = ctx->sd_ctx->be_ctx->sysdb; + domain = ctx->sd_ctx->be_ctx->domain; } ret = sdap_get_generic_recv(req, ctx, &reply_count, &reply); @@ -740,7 +743,7 @@ static void ipa_subdomains_handler_done(struct tevent_req *req) goto done; } - ret = ipa_subdomains_write_mappings(sysdb_ctx_get_domain(sysdb), + ret = ipa_subdomains_write_mappings(domain, ctx->sd_ctx->num_subdoms, ctx->sd_ctx->subdoms); if (ret != EOK) { -- cgit