From 61192a25075742f7254ecb42031a58b2f38e31cd Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Wed, 8 Jul 2009 14:34:06 +0200 Subject: fixed some typos which prevented password caching --- server/providers/proxy.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/server/providers/proxy.c b/server/providers/proxy.c index 048f31f1..58d52d54 100644 --- a/server/providers/proxy.c +++ b/server/providers/proxy.c @@ -268,6 +268,8 @@ static void proxy_pam_handler(struct be_req *req) { return proxy_reply(req, EOK, NULL); } tevent_req_set_callback(treq, proxy_pam_handler_cache_done, req); + + return; } proxy_reply(req, EOK, NULL); @@ -385,8 +387,8 @@ static struct tevent_req *cache_password_send(TALLOC_CTX *mem_ctx, talloc_set_destructor((TALLOC_CTX *)state->passwd, password_destructor); - req = sysdb_transaction_send(state, state->ev, sysdb); - if (!req) { + subreq = sysdb_transaction_send(state, state->ev, sysdb); + if (!subreq) { ret = ENOMEM; goto fail; } @@ -408,7 +410,7 @@ static void cache_password_process(struct tevent_req *subreq) struct cache_pw_state); int ret; - ret = sysdb_transaction_recv(req, state, &state->handle); + ret = sysdb_transaction_recv(subreq, state, &state->handle); if (ret) { tevent_req_error(req, ret); return; -- cgit