diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-12-10 03:11:59 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-12-10 19:24:23 +0100 |
commit | 9460448fe337d76348c25e59aef2a9659fc2601a (patch) | |
tree | 26c33925bfdf921793caddda52ac6a03d4bc7a06 /src/db | |
parent | 3693be57fe6187ccc2522f9b605f07a57252d175 (diff) | |
download | sssd-9460448fe337d76348c25e59aef2a9659fc2601a.tar.gz sssd-9460448fe337d76348c25e59aef2a9659fc2601a.tar.xz sssd-9460448fe337d76348c25e59aef2a9659fc2601a.zip |
SYSDB: Move misplaced assignment
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/sysdb_ops.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c index 80a323b12..4bbc76c5c 100644 --- a/src/db/sysdb_ops.c +++ b/src/db/sysdb_ops.c @@ -3153,8 +3153,6 @@ errno_t sysdb_remove_attrs(struct sysdb_ctx *sysdb, ldb_msg_remove_attr(msg, remove_attrs[i]); } - ret = EOK; - ret = sysdb_transaction_commit(sysdb); if (ret != EOK) { DEBUG(SSSDBG_CRIT_FAILURE, ("Failed to commit transaction\n")); @@ -3163,6 +3161,7 @@ errno_t sysdb_remove_attrs(struct sysdb_ctx *sysdb, in_transaction = false; + ret = EOK; done: if (in_transaction) { sret = sysdb_transaction_cancel(sysdb); |