summaryrefslogtreecommitdiff
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:55 -0500
commit129310e872a0a70e721ba59363e518176ef406d6 (patch)
tree1df031ed8c69a22b89891d7e6e7d95535deff775 /src/responder/nss/nsssrv_cmd.c
parent2cba1c86f48db866fc72738a32eecbbdcdf3dbdb (diff)
downloadsssd-129310e872a0a70e721ba59363e518176ef406d6.tar.gz
sssd-129310e872a0a70e721ba59363e518176ef406d6.tar.bz2
sssd-129310e872a0a70e721ba59363e518176ef406d6.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 68f6e0bb..7ec0b7c0 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 */