summaryrefslogtreecommitdiff
path: root/src/providers
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-08-29 13:37:32 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-12 19:11:09 +0200
commitdd7d72ec4e76ae781d739f0139e2ec43af9cf09b (patch)
tree7ec0f146ab915945bf9a7a1c7526b9d13fc806f5 /src/providers
parentb4d70ebd571d24bdc268d4e9c2b4479055239d3e (diff)
downloadsssd-dd7d72ec4e76ae781d739f0139e2ec43af9cf09b.tar.gz
sssd-dd7d72ec4e76ae781d739f0139e2ec43af9cf09b.tar.bz2
sssd-dd7d72ec4e76ae781d739f0139e2ec43af9cf09b.zip
KRB: Remove unused memory context
mem_ctx was unused in function get_domain_or_subdomain
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/krb5/krb5_auth.c2
-rw-r--r--src/providers/krb5/krb5_utils.c2
-rw-r--r--src/providers/krb5/krb5_utils.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/providers/krb5/krb5_auth.c b/src/providers/krb5/krb5_auth.c
index 7cfa3e94..f5ecd77c 100644
--- a/src/providers/krb5/krb5_auth.c
+++ b/src/providers/krb5/krb5_auth.c
@@ -435,7 +435,7 @@ struct tevent_req *krb5_auth_send(TALLOC_CTX *mem_ctx,
state->pam_status = PAM_SYSTEM_ERR;
state->dp_err = DP_ERR_FATAL;
- ret = get_domain_or_subdomain(state, be_ctx, pd->domain, &state->domain);
+ ret = get_domain_or_subdomain(be_ctx, pd->domain, &state->domain);
if (ret != EOK) {
DEBUG(SSSDBG_OP_FAILURE, ("get_domain_or_subdomain failed.\n"));
goto done;
diff --git a/src/providers/krb5/krb5_utils.c b/src/providers/krb5/krb5_utils.c
index e1daf6bf..8d10a834 100644
--- a/src/providers/krb5/krb5_utils.c
+++ b/src/providers/krb5/krb5_utils.c
@@ -1075,7 +1075,7 @@ done:
}
-errno_t get_domain_or_subdomain(TALLOC_CTX *mem_ctx, struct be_ctx *be_ctx,
+errno_t get_domain_or_subdomain(struct be_ctx *be_ctx,
char *domain_name,
struct sss_domain_info **dom)
{
diff --git a/src/providers/krb5/krb5_utils.h b/src/providers/krb5/krb5_utils.h
index e41309e7..33cc6112 100644
--- a/src/providers/krb5/krb5_utils.h
+++ b/src/providers/krb5/krb5_utils.h
@@ -69,7 +69,7 @@ errno_t get_ccache_file_data(const char *ccache_file, const char *client_name,
struct tgt_times *tgtt);
-errno_t get_domain_or_subdomain(TALLOC_CTX *mem_ctx, struct be_ctx *be_ctx,
+errno_t get_domain_or_subdomain(struct be_ctx *be_ctx,
char *domain_name,
struct sss_domain_info **dom);
#endif /* __KRB5_UTILS_H__ */