diff options
author | Simo Sorce <simo@redhat.com> | 2013-01-08 14:02:53 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-15 10:53:03 +0100 |
commit | f91e4aacb78d33791efcd744000597d5254dac4b (patch) | |
tree | 3e0069ee92bb016d3241876cbeef3ae9e457a257 /src/util | |
parent | b353437811527daf305fceef5f07e990c50d62ca (diff) | |
download | sssd-f91e4aacb78d33791efcd744000597d5254dac4b.tar.gz sssd-f91e4aacb78d33791efcd744000597d5254dac4b.tar.bz2 sssd-f91e4aacb78d33791efcd744000597d5254dac4b.zip |
Stop creating fake sysdb contexts
Now that the sysdb context does not contain anymore domain related data
we can simply stop creating faxe sysdb context and just reference the
parent context.
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/domain_info_utils.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/util/domain_info_utils.c b/src/util/domain_info_utils.c index 45b9f7b5..d0f709ec 100644 --- a/src/util/domain_info_utils.c +++ b/src/util/domain_info_utils.c @@ -28,8 +28,7 @@ struct sss_domain_info *new_subdomain(TALLOC_CTX *mem_ctx, const char *flat_name, const char *id) { - int ret; - struct sss_domain_info *dom = NULL; + struct sss_domain_info *dom; dom = talloc_zero(mem_ctx, struct sss_domain_info); if (dom == NULL) { @@ -94,11 +93,7 @@ struct sss_domain_info *new_subdomain(TALLOC_CTX *mem_ctx, DEBUG(SSSDBG_OP_FAILURE, ("Missing sysdb context in parent domain.\n")); goto fail; } - ret = sysdb_get_subdomain_context(dom, parent->sysdb, dom, &dom->sysdb); - if (ret != EOK) { - DEBUG(SSSDBG_OP_FAILURE, ("sysdb_get_subdomain_context failed.\n")); - goto fail; - } + dom->sysdb = parent->sysdb; return dom; |