s3:registry: fix race in reg_setvalue that could lead to data corruption
authorMichael Adam <obnox@samba.org>
Thu, 12 Apr 2012 11:38:32 +0000 (13:38 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 22 Jun 2012 19:41:08 +0000 (21:41 +0200)
commitde325a9ade376dd72985bd56262f7f1b1127d46f
treeef415556765d134708094e1080302cb974a9c3fa
parent0e838859c832237ddafeeb1a4cf7bede6570a5cc
s3:registry: fix race in reg_setvalue that could lead to data corruption

(there was no lock around fetching the values and storing them)

The layering is wrong in that it uses regdb transactions in reg_api
(cherry picked from commit 9220377ceebf05e756fd108cbd30b503598e0fb8)
(cherry picked from commit e2d087619076e8c7ec9e46e63037753d8c07138f)
source3/registry/reg_api.c