summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-07-07 12:39:32 +0200
committerMichael Adam <obnox@samba.org>2009-07-15 14:01:48 +0200
commit4c366a094693f050b2cadea771cd5c6eab29e278 (patch)
tree8e0950087a6de2308e9c6a92ccb6fee9ecd2c55a
parent6cb14409af5f708706f975143c7b40bb54c7a5c0 (diff)
downloadsamba-4c366a094693f050b2cadea771cd5c6eab29e278.tar.gz
samba-4c366a094693f050b2cadea771cd5c6eab29e278.tar.bz2
samba-4c366a094693f050b2cadea771cd5c6eab29e278.zip
s3:registry: don't loop transaction_commit in create_sorted_subkeys() upon error
This would try to commit a higher level transaction upon commit-error. Michael
-rw-r--r--source3/registry/reg_backend_db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index 979dc1867c..dd9ca8b65c 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -1203,7 +1203,7 @@ static bool create_sorted_subkeys(const char *key, const char *sorted_keyname)
if (regdb->transaction_commit(regdb) == -1) {
DEBUG(0, ("create_sorted_subkeys: transaction_start "
"failed\n"));
- goto fail;
+ result = false;
}
TALLOC_FREE(ctr);