diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2011-02-10 14:31:02 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-02-11 09:17:55 -0500 |
commit | b467b593c344d7de5cc2bbf141bc959e5d248de1 (patch) | |
tree | c811d118125cf296d738089138ebac384af40b98 /src/providers/ldap/ldap_id_cleanup.c | |
parent | 01bc248f42f1a056091aa3dd99ba9615ba61df6f (diff) | |
download | sssd-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.c | 1 |
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) { |