summaryrefslogtreecommitdiffstats
path: root/src/responder/nss/nsssrv_cmd.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-02-13 14:54:55 +0100
committerStephen Gallagher <sgallagh@redhat.com>2012-02-13 11:46:49 -0500
commit3bad53a76d9b2eeab485aca9198a0f0bdda14171 (patch)
tree61d929fb7dc319f10b718d0ff7857c4ce5a6b9bb /src/responder/nss/nsssrv_cmd.c
parent701b8a11aafc63a1e8445f0924ff9a2e9f8a8b47 (diff)
downloadsssd-3bad53a76d9b2eeab485aca9198a0f0bdda14171.tar.gz
sssd-3bad53a76d9b2eeab485aca9198a0f0bdda14171.tar.xz
sssd-3bad53a76d9b2eeab485aca9198a0f0bdda14171.zip
Allocate setent structure on state, not on the client context
https://fedorahosted.org/sssd/ticket/1189
Diffstat (limited to 'src/responder/nss/nsssrv_cmd.c')
-rw-r--r--src/responder/nss/nsssrv_cmd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c
index 68f6e0bb4..7ec0b7c03 100644
--- a/src/responder/nss/nsssrv_cmd.c
+++ b/src/responder/nss/nsssrv_cmd.c
@@ -1210,7 +1210,7 @@ struct tevent_req *nss_cmd_setpwent_send(TALLOC_CTX *mem_ctx,
* Register for notification when it's
* ready.
*/
- ret = nss_setent_add_ref(state->client, state->nctx->pctx, req);
+ ret = nss_setent_add_ref(state, state->nctx->pctx, req);
if (ret != EOK) {
talloc_free(req);
return NULL;
@@ -1232,7 +1232,7 @@ struct tevent_req *nss_cmd_setpwent_send(TALLOC_CTX *mem_ctx,
state->getent_ctx = nctx->pctx;
/* Add a callback reference for ourselves */
- ret = nss_setent_add_ref(state->client, state->nctx->pctx, req);
+ ret = nss_setent_add_ref(state, state->nctx->pctx, req);
if (ret) goto error;
/* ok, start the searches */
@@ -2508,7 +2508,7 @@ struct tevent_req *nss_cmd_setgrent_send(TALLOC_CTX *mem_ctx,
* Register for notification when it's
* ready.
*/
- ret = nss_setent_add_ref(state->client, state->nctx->gctx, req);
+ ret = nss_setent_add_ref(state, state->nctx->gctx, req);
if (ret != EOK) {
talloc_free(req);
return NULL;
@@ -2530,7 +2530,7 @@ struct tevent_req *nss_cmd_setgrent_send(TALLOC_CTX *mem_ctx,
state->getent_ctx = nctx->gctx;
/* Add a callback reference for ourselves */
- ret = nss_setent_add_ref(state->client, state->nctx->gctx, req);
+ ret = nss_setent_add_ref(state, state->nctx->gctx, req);
if (ret) goto error;
/* ok, start the searches */