summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb_subdomains.c
diff options
context:
space:
mode:
authorMichal Zidek <mzidek@redhat.com>2012-08-15 10:56:21 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-09-04 13:56:32 +0200
commit3a59cbd0b7b9c5dd3c62ac1679876070c264d80f (patch)
tree0f5440da7b11b227e638a33e2d3600622c41e6c7 /src/db/sysdb_subdomains.c
parent28943451c1b0f01845266b0f13cc3772c2b1d66f (diff)
downloadsssd-3a59cbd0b7b9c5dd3c62ac1679876070c264d80f.tar.gz
sssd-3a59cbd0b7b9c5dd3c62ac1679876070c264d80f.tar.xz
sssd-3a59cbd0b7b9c5dd3c62ac1679876070c264d80f.zip
Unify usage of sysdb transactions (part 2).
Diffstat (limited to 'src/db/sysdb_subdomains.c')
-rw-r--r--src/db/sysdb_subdomains.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/db/sysdb_subdomains.c b/src/db/sysdb_subdomains.c
index 8489041bd..96b8b4b21 100644
--- a/src/db/sysdb_subdomains.c
+++ b/src/db/sysdb_subdomains.c
@@ -528,11 +528,11 @@ errno_t sysdb_update_subdomains(struct sysdb_ctx *sysdb,
}
ret = sysdb_transaction_commit(sysdb);
- if (ret == EOK) {
- in_transaction = false;
- } else {
+ if (ret != EOK) {
DEBUG(SSSDBG_MINOR_FAILURE, ("Could not commit transaction\n"));
+ goto done;
}
+ in_transaction = false;
done:
if (in_transaction) {