From fc0e15ef667a7263787afdc8fc59c61f5bdd6d00 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Fri, 28 Sep 2012 12:51:51 +0200 Subject: sysdb_master_domain_get_info: fix copy-and-paste error --- src/db/sysdb_subdomains.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/db/sysdb_subdomains.c') diff --git a/src/db/sysdb_subdomains.c b/src/db/sysdb_subdomains.c index b3998a2d..2e0170f4 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; } -- cgit