diff options
author | Volker Lendecke <vl@samba.org> | 2014-10-08 15:39:28 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2014-10-08 15:54:04 +0200 |
commit | 4237138c464d7e2046de43b431ab9796f80182db (patch) | |
tree | 9cf3dfa566c4a9af857ef15d09afff4c6ed50a88 /source3/registry/reg_api.c | |
parent | ae72733874f474c24fdeb5d9bc718ddf9abf4b8f (diff) | |
download | samba-4237138c464d7e2046de43b431ab9796f80182db.tar.gz samba-4237138c464d7e2046de43b431ab9796f80182db.tar.xz samba-4237138c464d7e2046de43b431ab9796f80182db.zip |
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>
Diffstat (limited to 'source3/registry/reg_api.c')
-rw-r--r-- | source3/registry/reg_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/registry/reg_api.c b/source3/registry/reg_api.c index 47a717beed..d1c70ec497 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; } /* |