summaryrefslogtreecommitdiff
path: root/src/providers/ldap/ldap_id_cleanup.c
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-02-10 14:31:02 -0500
committerStephen Gallagher <sgallagh@redhat.com>2011-02-11 09:17:55 -0500
commitb467b593c344d7de5cc2bbf141bc959e5d248de1 (patch)
treec811d118125cf296d738089138ebac384af40b98 /src/providers/ldap/ldap_id_cleanup.c
parent01bc248f42f1a056091aa3dd99ba9615ba61df6f (diff)
downloadsssd-b467b593c344d7de5cc2bbf141bc959e5d248de1.tar.gz
sssd-b467b593c344d7de5cc2bbf141bc959e5d248de1.tar.bz2
sssd-b467b593c344d7de5cc2bbf141bc959e5d248de1.zip
Fix cleanup transaction
Without setting in_transaction=true, if the sysdb operations threw an error, we wouldn't cancel the transaction.
Diffstat (limited to 'src/providers/ldap/ldap_id_cleanup.c')
-rw-r--r--src/providers/ldap/ldap_id_cleanup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/providers/ldap/ldap_id_cleanup.c b/src/providers/ldap/ldap_id_cleanup.c
index ced46522..7f7a02c6 100644
--- a/src/providers/ldap/ldap_id_cleanup.c
+++ b/src/providers/ldap/ldap_id_cleanup.c
@@ -195,6 +195,7 @@ struct tevent_req *ldap_id_cleanup_send(TALLOC_CTX *memctx,
if (ret != EOK) {
goto fail;
}
+ in_transaction = true;
ret = cleanup_users(state, state->ctx);
if (ret && ret != ENOENT) {