summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-06-11 12:48:06 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-06-12 15:05:31 +0200
commit49f3aebcc8614d483c5753109a9d65aa33d301ea (patch)
tree4155a7f14b5ed9d1a76bf780c9de6dd6ea314c43
parentd24f0493002037a5809c9fc5ae27fa2ceb81036e (diff)
downloadsssd-49f3aebcc8614d483c5753109a9d65aa33d301ea.tar.gz
sssd-49f3aebcc8614d483c5753109a9d65aa33d301ea.tar.bz2
sssd-49f3aebcc8614d483c5753109a9d65aa33d301ea.zip
Use the correct talloc context when creating AD subdomains
sdom was only ever guaranteed to be set when a new domain was being created. sditer is a valid pointer in both cases, so just use that.
-rw-r--r--src/providers/ad/ad_subdomains.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ad/ad_subdomains.c b/src/providers/ad/ad_subdomains.c
index f4eec6a4..07b523df 100644
--- a/src/providers/ad/ad_subdomains.c
+++ b/src/providers/ad/ad_subdomains.c
@@ -120,7 +120,7 @@ ads_store_sdap_subdom(struct ad_subdomains_ctx *ctx,
}
/* Convert the domain name into search base */
- ret = domain_to_basedn(sdom, sditer->dom->name, &basedn);
+ ret = domain_to_basedn(sditer, sditer->dom->name, &basedn);
if (ret != EOK) {
DEBUG(SSSDBG_OP_FAILURE,
("Cannot convert domain name [%s] to base DN [%d]: %s\n",