registry: Don't leave dangling transactions
commitbbf24d39b4c0ba81767bcdb67d5cd7c01604b16c
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:10:04 +0000 (9 21:10 +0200)
treeb4c6829a842de8efee88efcac8fa4a9bd21c01f6
parentf88c10665e628eed0b03bcabef3216b32e1bc05b
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