s3:registry: fix race in reg_setvalue that could lead to data corruption
commite2d087619076e8c7ec9e46e63037753d8c07138f
authorMichael Adam <obnox@samba.org>
Thu, 12 Apr 2012 11:38:32 +0000 (12 13:38 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 10 May 2012 09:15:18 +0000 (10 11:15 +0200)
tree4d08e0d50f0ae5c5e507e49ede9fff77184b785f
parenta5025e27890a96b11d8d2119ca72a27b929aa2bc
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)
source3/registry/reg_api.c