summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-12-10 03:11:59 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-12-10 19:22:33 +0100
commit5fefdbb7936ee47405c4127075896aa8217b4575 (patch)
tree6016eb41e170eae6529524915626754f59333abb /src
parent73cb66e832191041aeb31da5f2d88bf60580b5fa (diff)
downloadsssd-5fefdbb7936ee47405c4127075896aa8217b4575.tar.gz
sssd-5fefdbb7936ee47405c4127075896aa8217b4575.tar.bz2
sssd-5fefdbb7936ee47405c4127075896aa8217b4575.zip
SYSDB: Move misplaced assignment
Diffstat (limited to 'src')
-rw-r--r--src/db/sysdb_ops.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c
index 80a323b1..4bbc76c5 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);