summaryrefslogtreecommitdiff
path: root/src/responder/common
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2013-04-18 12:43:47 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-05-02 19:33:56 +0200
commit4668b4765530cf37289235e483f301100cc1ae21 (patch)
treeeaad011be91af70cde2fc0c723a132a5f9229c2a /src/responder/common
parent4e748c28dec6fcb732ebe24829f1b750074d488e (diff)
downloadsssd-4668b4765530cf37289235e483f301100cc1ae21.tar.gz
sssd-4668b4765530cf37289235e483f301100cc1ae21.tar.bz2
sssd-4668b4765530cf37289235e483f301100cc1ae21.zip
Remove unused TALLOC_CTX from responder_get_domain()
Recent refactoring removed the need to copy the domain info data of sub-domains because the related objects will not be removed from memory anymore.
Diffstat (limited to 'src/responder/common')
-rw-r--r--src/responder/common/negcache.c4
-rw-r--r--src/responder/common/responder.h3
-rw-r--r--src/responder/common/responder_common.c3
3 files changed, 4 insertions, 6 deletions
diff --git a/src/responder/common/negcache.c b/src/responder/common/negcache.c
index 57d1fc8b..2e1c0af2 100644
--- a/src/responder/common/negcache.c
+++ b/src/responder/common/negcache.c
@@ -652,7 +652,7 @@ errno_t sss_ncache_prepopulate(struct sss_nc_ctx *ncache,
continue;
}
if (domainname) {
- dom = responder_get_domain(tmpctx, rctx, domainname);
+ dom = responder_get_domain(rctx, domainname);
if (!dom) {
DEBUG(SSSDBG_CRIT_FAILURE,
("Invalid domain name [%s]\n", domainname));
@@ -750,7 +750,7 @@ errno_t sss_ncache_prepopulate(struct sss_nc_ctx *ncache,
continue;
}
if (domainname) {
- dom = responder_get_domain(tmpctx, rctx, domainname);
+ dom = responder_get_domain(rctx, domainname);
if (!dom) {
DEBUG(SSSDBG_CRIT_FAILURE,
("Invalid domain name [%s]\n", domainname));
diff --git a/src/responder/common/responder.h b/src/responder/common/responder.h
index 110bd38d..e1b0b002 100644
--- a/src/responder/common/responder.h
+++ b/src/responder/common/responder.h
@@ -169,8 +169,7 @@ int sss_parse_name_for_domains(TALLOC_CTX *memctx,
int sss_dp_get_domain_conn(struct resp_ctx *rctx, const char *domain,
struct be_conn **_conn);
struct sss_domain_info *
-responder_get_domain(TALLOC_CTX *sd_mem_ctx, struct resp_ctx *rctx,
- const char *domain);
+responder_get_domain(struct resp_ctx *rctx, const char *domain);
/* responder_cmd.c */
int sss_cmd_empty_packet(struct sss_packet *packet);
diff --git a/src/responder/common/responder_common.c b/src/responder/common/responder_common.c
index 35142c19..32925919 100644
--- a/src/responder/common/responder_common.c
+++ b/src/responder/common/responder_common.c
@@ -897,8 +897,7 @@ int sss_dp_get_domain_conn(struct resp_ctx *rctx, const char *domain,
}
struct sss_domain_info *
-responder_get_domain(TALLOC_CTX *sd_mem_ctx, struct resp_ctx *rctx,
- const char *name)
+responder_get_domain(struct resp_ctx *rctx, const char *name)
{
time_t now = time(NULL);
time_t time_diff = 0;