From fb75b1f22d621de466092cad2a15f46b0598ced5 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Mon, 10 Dec 2012 03:11:59 +0100 Subject: SYSDB: Move misplaced assignment --- src/db/sysdb_ops.c | 3 +-- 1 file changed, 1 insertion(+), 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); -- cgit