summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/db/sysdb_ops.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/db/sysdb_ops.c b/server/db/sysdb_ops.c
index efcc5d1b..ad4a63e5 100644
--- a/server/db/sysdb_ops.c
+++ b/server/db/sysdb_ops.c
@@ -3098,7 +3098,7 @@ struct tevent_req *sysdb_cache_password_send(TALLOC_CTX *mem_ctx,
char *salt;
int ret;
- req = tevent_req_create(mem_ctx, &state, struct sysdb_op_state);
+ req = tevent_req_create(mem_ctx, &state, struct sysdb_cache_pw_state);
if (!req) return NULL;
state->ev = ev;
@@ -3170,7 +3170,8 @@ static void sysdb_cache_password_trans(struct tevent_req *subreq)
struct sysdb_cache_pw_state);
int ret;
- ret = sysdb_transaction_recv(req, state, &state->handle);
+ ret = sysdb_transaction_recv(subreq, state, &state->handle);
+ talloc_zfree(subreq);
if (ret) {
tevent_req_error(req, ret);
return;