summaryrefslogtreecommitdiff
path: root/src/tools/sss_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/sss_cache.c')
-rw-r--r--src/tools/sss_cache.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/tools/sss_cache.c b/src/tools/sss_cache.c
index f888608a..c9096fa9 100644
--- a/src/tools/sss_cache.c
+++ b/src/tools/sss_cache.c
@@ -219,14 +219,10 @@ static errno_t update_filter(struct cache_tool_ctx *tctx,
}
if (parsed_domain) {
- if (IS_SUBDOMAIN(dinfo)) {
- /* Use fqdn for subdomains */
- use_name = sss_tc_fqname(tmp_ctx, tctx->nctx, dinfo, name);
- if (use_name == NULL) {
- DEBUG(SSSDBG_CRIT_FAILURE, ("Out of memory\n"));
- ret = ENOMEM;
- goto done;
- }
+ use_name = sss_get_domain_name(tmp_ctx, use_name, dinfo);
+ if (!use_name) {
+ ret = ENOMEM;
+ goto done;
}
if (!strcasecmp(dinfo->name, parsed_domain)) {