summaryrefslogtreecommitdiff
path: root/src/providers/krb5
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2013-06-27 17:07:36 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-06-28 20:20:59 +0200
commitb8d703cf3aba81800cf1b8ccca64bb00ef0b30f7 (patch)
treee406479c4d454d765b86c8a99e0929c198e991dd /src/providers/krb5
parent5e60c73cb91d1659755fb5ea829837db68d46163 (diff)
downloadsssd-b8d703cf3aba81800cf1b8ccca64bb00ef0b30f7.tar.gz
sssd-b8d703cf3aba81800cf1b8ccca64bb00ef0b30f7.tar.bz2
sssd-b8d703cf3aba81800cf1b8ccca64bb00ef0b30f7.zip
Replace new_subdomain() with find_subdomain_by_name()
new_subdomain() will create a new domain object and should not be used anymore in the priovder code directly. Instead a reference to the domain from the common domain object should be used.
Diffstat (limited to 'src/providers/krb5')
-rw-r--r--src/providers/krb5/krb5_utils.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/providers/krb5/krb5_utils.c b/src/providers/krb5/krb5_utils.c
index 1f7ed074..4811a736 100644
--- a/src/providers/krb5/krb5_utils.c
+++ b/src/providers/krb5/krb5_utils.c
@@ -1216,10 +1216,9 @@ errno_t get_domain_or_subdomain(TALLOC_CTX *mem_ctx, struct be_ctx *be_ctx,
if (domain_name != NULL &&
strcasecmp(domain_name, be_ctx->domain->name) != 0) {
- *dom = new_subdomain(mem_ctx, be_ctx->domain,
- domain_name, NULL, NULL, NULL);
+ *dom = find_subdomain_by_name(be_ctx->domain, domain_name, true);
if (*dom == NULL) {
- DEBUG(SSSDBG_OP_FAILURE, ("new_subdomain failed.\n"));
+ DEBUG(SSSDBG_OP_FAILURE, ("find_subdomain_by_name failed.\n"));
return ENOMEM;
}
} else {