summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2012-09-28 12:51:51 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-10-01 21:45:22 +0200
commitfc0e15ef667a7263787afdc8fc59c61f5bdd6d00 (patch)
treed4dba0c84c720908db70b2951ddd5ed1e7df8897 /src
parentaac3ca699a09090072ae4d68bdda8dec990ae393 (diff)
downloadsssd-fc0e15ef667a7263787afdc8fc59c61f5bdd6d00.tar.gz
sssd-fc0e15ef667a7263787afdc8fc59c61f5bdd6d00.tar.xz
sssd-fc0e15ef667a7263787afdc8fc59c61f5bdd6d00.zip
sysdb_master_domain_get_info: fix copy-and-paste error
Diffstat (limited to 'src')
-rw-r--r--src/db/sysdb_subdomains.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/sysdb_subdomains.c b/src/db/sysdb_subdomains.c
index b3998a2db..2e0170f4d 100644
--- a/src/db/sysdb_subdomains.c
+++ b/src/db/sysdb_subdomains.c
@@ -203,8 +203,8 @@ errno_t sysdb_master_domain_get_info(TALLOC_CTX *mem_ctx,
tmp_str = ldb_msg_find_attr_as_string(res->msgs[0], SYSDB_SUBDOMAIN_ID,
NULL);
if (tmp_str != NULL) {
- info->flat_name = talloc_strdup(info, tmp_str);
- if (info->flat_name == NULL) {
+ info->id = talloc_strdup(info, tmp_str);
+ if (info->id == NULL) {
ret = ENOMEM;
goto done;
}