diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2013-11-09 13:21:33 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-11-27 18:24:45 +0100 |
commit | 7ff5374d0103f8e2e03ef15790838b85918153ae (patch) | |
tree | 76ecc466a2943955d6073dc525d3064d1387cbe1 /src/providers/proxy | |
parent | 19a410288778a3aaf6a01bc71cacb8cb46465875 (diff) | |
download | sssd-7ff5374d0103f8e2e03ef15790838b85918153ae.tar.gz sssd-7ff5374d0103f8e2e03ef15790838b85918153ae.tar.xz sssd-7ff5374d0103f8e2e03ef15790838b85918153ae.zip |
Remove unused memory context in proxy
Diffstat (limited to 'src/providers/proxy')
-rw-r--r-- | src/providers/proxy/proxy_id.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/providers/proxy/proxy_id.c b/src/providers/proxy/proxy_id.c index 4ed943ad4..6e2b17523 100644 --- a/src/providers/proxy/proxy_id.c +++ b/src/providers/proxy/proxy_id.c @@ -42,8 +42,7 @@ static int delete_user(struct sss_domain_info *domain, const char *name, uid_t uid); -static int get_pw_name(TALLOC_CTX *mem_ctx, - struct proxy_id_ctx *ctx, +static int get_pw_name(struct proxy_id_ctx *ctx, struct sss_domain_info *dom, const char *name) { @@ -300,8 +299,7 @@ static int save_user(struct sss_domain_info *domain, /* =Getpwuid-wrapper======================================================*/ -static int get_pw_uid(TALLOC_CTX *mem_ctx, - struct proxy_id_ctx *ctx, +static int get_pw_uid(struct proxy_id_ctx *ctx, struct sss_domain_info *dom, uid_t uid) { @@ -775,8 +773,7 @@ handle_getgr_result(enum nss_status status, struct group *grp, return EOK; } -static int get_gr_name(TALLOC_CTX *mem_ctx, - struct proxy_id_ctx *ctx, +static int get_gr_name(struct proxy_id_ctx *ctx, struct sysdb_ctx *sysdb, struct sss_domain_info *dom, const char *name) @@ -1401,7 +1398,7 @@ void proxy_get_account_info(struct be_req *breq) break; case BE_FILTER_NAME: - ret = get_pw_name(breq, ctx, domain, ar->filter_value); + ret = get_pw_name(ctx, domain, ar->filter_value); break; case BE_FILTER_IDNUM: @@ -1410,7 +1407,7 @@ void proxy_get_account_info(struct be_req *breq) return be_req_terminate(breq, DP_ERR_FATAL, EINVAL, "Invalid attr type"); } - ret = get_pw_uid(breq, ctx, domain, uid); + ret = get_pw_uid(ctx, domain, uid); break; default: return be_req_terminate(breq, DP_ERR_FATAL, @@ -1424,7 +1421,7 @@ void proxy_get_account_info(struct be_req *breq) ret = enum_groups(breq, ctx, sysdb, domain); break; case BE_FILTER_NAME: - ret = get_gr_name(breq, ctx, sysdb, domain, ar->filter_value); + ret = get_gr_name(ctx, sysdb, domain, ar->filter_value); break; case BE_FILTER_IDNUM: gid = (gid_t) strtouint32(ar->filter_value, &endptr, 10); |