diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-07-03 19:35:27 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-07-08 19:29:51 -0400 |
commit | f255b943157f76b53eb55c279e29e40a6c41a97a (patch) | |
tree | 6d13440a9d1d1e36de3f61d8ff3ad5710133badf /server/db/sysdb.c | |
parent | 825c3a94f23751981bc03218ab35af9f464ebb5c (diff) | |
download | sssd-f255b943157f76b53eb55c279e29e40a6c41a97a.tar.gz sssd-f255b943157f76b53eb55c279e29e40a6c41a97a.tar.bz2 sssd-f255b943157f76b53eb55c279e29e40a6c41a97a.zip |
Unify password caching ops in sysdb
Diffstat (limited to 'server/db/sysdb.c')
-rw-r--r-- | server/db/sysdb.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/server/db/sysdb.c b/server/db/sysdb.c index 1951a9b3..0cac339e 100644 --- a/server/db/sysdb.c +++ b/server/db/sysdb.c @@ -443,6 +443,26 @@ int sysdb_transaction_commit_recv(struct tevent_req *req) return EOK; } +/* default transaction commit receive function. + * This function does not use the request state so it is safe to use + * from any caller */ +void sysdb_transaction_complete(struct tevent_req *subreq) +{ + struct tevent_req *req = tevent_req_callback_data(subreq, + struct tevent_req); + int ret; + + ret = sysdb_transaction_commit_recv(subreq); + talloc_zfree(subreq); + if (ret) { + tevent_req_error(req, ret); + return; + } + + tevent_req_done(req); +} + + /* =Operations============================================================ */ struct sysdb_operation_state { |