summaryrefslogtreecommitdiff
path: root/src/responder/autofs
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/autofs
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/autofs')
-rw-r--r--src/responder/autofs/autofssrv_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/responder/autofs/autofssrv_cmd.c b/src/responder/autofs/autofssrv_cmd.c
index 73dbc5ea..2be87290 100644
--- a/src/responder/autofs/autofssrv_cmd.c
+++ b/src/responder/autofs/autofssrv_cmd.c
@@ -436,7 +436,7 @@ setautomntent_send(TALLOC_CTX *mem_ctx,
DEBUG(SSSDBG_TRACE_LIBS,
("Map %s is being looked up, registering for notification\n",
state->mapname));
- ret = autofs_setent_add_ref(cmdctx->cctx, state->map, req);
+ ret = autofs_setent_add_ref(state, state->map, req);
if (ret != EOK) {
goto fail;
}
@@ -460,7 +460,7 @@ setautomntent_send(TALLOC_CTX *mem_ctx,
}
state->map->map_table = actx->maps;
- ret = autofs_setent_add_ref(cmdctx->cctx, state->map, req);
+ ret = autofs_setent_add_ref(state, state->map, req);
if (ret != EOK) {
talloc_free(state->map);
goto fail;