From 9675bccabff4e79d224f64611ad9ff3e073b488e Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sun, 6 Jan 2013 02:04:58 -0500 Subject: Make sysdb_custom_subtree_dn() require a domain. --- src/db/sysdb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/db/sysdb.c') diff --git a/src/db/sysdb.c b/src/db/sysdb.c index 2f58d70d..4127b912 100644 --- a/src/db/sysdb.c +++ b/src/db/sysdb.c @@ -93,6 +93,7 @@ errno_t sysdb_dn_sanitize(TALLOC_CTX *mem_ctx, const char *input, struct ldb_dn *sysdb_custom_subtree_dn(struct sysdb_ctx *sysdb, TALLOC_CTX *mem_ctx, + struct sss_domain_info *dom, const char *subtree_name) { errno_t ret; @@ -110,7 +111,7 @@ struct ldb_dn *sysdb_custom_subtree_dn(struct sysdb_ctx *sysdb, } dn = ldb_dn_new_fmt(tmp_ctx, sysdb->ldb, SYSDB_TMPL_CUSTOM_SUBTREE, - clean_subtree, sysdb->domain->name); + clean_subtree, dom->name); if (dn) { talloc_steal(mem_ctx, dn); } -- cgit