From b467b593c344d7de5cc2bbf141bc959e5d248de1 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Thu, 10 Feb 2011 14:31:02 -0500 Subject: Fix cleanup transaction Without setting in_transaction=true, if the sysdb operations threw an error, we wouldn't cancel the transaction. --- src/providers/ldap/ldap_id_cleanup.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/providers') diff --git a/src/providers/ldap/ldap_id_cleanup.c b/src/providers/ldap/ldap_id_cleanup.c index ced46522c..7f7a02c64 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) { -- cgit