summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-10-08 15:39:28 +0200
committerKarolin Seeger <kseeger@samba.org>2014-10-09 21:23:06 +0200
commit6602ad3be3753503423bd2c3ba0e03961a2a4038 (patch)
treead892559334773639ea65b94078399ca344acc67 /source3
parentf2f050ccb9a07fc1219f4f4b73ef2875ca37ab9e (diff)
downloadsamba-6602ad3be3753503423bd2c3ba0e03961a2a4038.tar.gz
registry: Don't leave dangling transactions
When a createkey fails due to access denied, we need to do a transaction_cancel. Otherwise the lock on the db will stay around. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> Bug: https://bugzilla.samba.org/show_bug.cgi?id=10860
Diffstat (limited to 'source3')
-rw-r--r--source3/registry/reg_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/registry/reg_api.c b/source3/registry/reg_api.c
index ca990e22f8..cb8576e176 100644
--- a/source3/registry/reg_api.c
+++ b/source3/registry/reg_api.c
@@ -634,7 +634,7 @@ WERROR reg_createkey(TALLOC_CTX *ctx, struct registry_key *parent,
key->token))
{
err = WERR_ACCESS_DENIED;
- goto done;
+ goto trans_done;
}
/*