diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2011-03-28 10:49:27 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-03-28 11:42:47 -0400 |
commit | 1a881a1b5997494ef3228cf35ae0f2c7381d14ff (patch) | |
tree | 9d52803f97c857eac251f441dfc1b469b3ceb297 /src | |
parent | 95c3131ffeef889399f5afada8b8e47e7892d81f (diff) | |
download | sssd-1a881a1b5997494ef3228cf35ae0f2c7381d14ff.tar.gz sssd-1a881a1b5997494ef3228cf35ae0f2c7381d14ff.tar.bz2 sssd-1a881a1b5997494ef3228cf35ae0f2c7381d14ff.zip |
Mark transaction as done when cancelled
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/ldap/sdap_async_accounts.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/providers/ldap/sdap_async_accounts.c b/src/providers/ldap/sdap_async_accounts.c index 07bf5153..54416bb1 100644 --- a/src/providers/ldap/sdap_async_accounts.c +++ b/src/providers/ldap/sdap_async_accounts.c @@ -1364,7 +1364,7 @@ static int sdap_process_missing_member_2307(struct sdap_process_group_state *state, char *username, bool *in_transaction) { - int ret; + int ret, sret; struct ldb_dn *dn; char* dn_string; @@ -1415,7 +1415,13 @@ sdap_process_missing_member_2307(struct sdap_process_group_state *state, return EOK; fail: if (*in_transaction) { - sysdb_transaction_cancel(state->sysdb); + sret = sysdb_transaction_cancel(state->sysdb); + if (sret == EOK) { + *in_transaction = false; + } else { + DEBUG(0, ("Unable to cancel transaction! [%d][%s]\n", + sret, strerror(sret))); + } } return ret; } |