registry: Don't leave dangling transactions
commit6602ad3be3753503423bd2c3ba0e03961a2a4038
authorVolker Lendecke <vl@samba.org>
Wed, 8 Oct 2014 13:39:28 +0000 (8 15:39 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 9 Oct 2014 19:23:06 +0000 (9 21:23 +0200)
treead892559334773639ea65b94078399ca344acc67
parentf2f050ccb9a07fc1219f4f4b73ef2875ca37ab9e
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
source3/registry/reg_api.c