From 2895687c4d6efc5129d1c027125920f8849e380a Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Fri, 28 Sep 2012 12:51:51 +0200 Subject: [PATCH 3/3] sysdb_master_domain_get_info: fix copy-and-paste error --- src/db/sysdb_subdomains.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db/sysdb_subdomains.c b/src/db/sysdb_subdomains.c index b3998a2dbe875692d6730ff9b7bf2b2644601a79..2e0170f4d37f04468e9a56dbca9b8176c017c9ff 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; } -- 1.7.7.6