summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2009-07-08 14:34:06 +0200
committerSimo Sorce <ssorce@redhat.com>2009-07-08 19:19:10 -0400
commit61192a25075742f7254ecb42031a58b2f38e31cd (patch)
tree9c1b4b6f21c79c93ff1e13d34ddb62f30077c132
parent243bc6af6f0c73aca109c7da6c49a4a02e548e5d (diff)
downloadsssd-61192a25075742f7254ecb42031a58b2f38e31cd.tar.gz
sssd-61192a25075742f7254ecb42031a58b2f38e31cd.tar.bz2
sssd-61192a25075742f7254ecb42031a58b2f38e31cd.zip
fixed some typos which prevented password caching
-rw-r--r--server/providers/proxy.c8
1 files 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;