diff options
Diffstat (limited to 'src/db/sysdb_search.c')
-rw-r--r-- | src/db/sysdb_search.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/db/sysdb_search.c b/src/db/sysdb_search.c index 843c746d..344ff6fa 100644 --- a/src/db/sysdb_search.c +++ b/src/db/sysdb_search.c @@ -57,8 +57,7 @@ int sysdb_getpwnam(TALLOC_CTX *mem_ctx, * search as well by default */ if (IS_SUBDOMAIN(domain) && domain->fqnames) { ret = ENOMEM; - src_name = talloc_asprintf(tmp_ctx, domain->names->fq_fmt, - name, domain->name); + src_name = sss_tc_fqname(tmp_ctx, domain->names, domain, name); } else { ret = EINVAL; src_name = name; @@ -245,8 +244,7 @@ int sysdb_getgrnam(TALLOC_CTX *mem_ctx, * search as well by default */ if (IS_SUBDOMAIN(domain) && domain->fqnames) { ret = ENOMEM; - src_name = talloc_asprintf(tmp_ctx, domain->names->fq_fmt, - name, domain->name); + src_name = sss_tc_fqname(tmp_ctx, domain->names, domain, name); } else { ret = EINVAL; src_name = name; |