s3:registry: fix race in reg_setvalue that could lead to data corruption
commit8ddc2aa0e1734f00f120c4ac7a0e2ebbaa888f11
authorMichael Adam <obnox@samba.org>
Thu, 12 Apr 2012 11:38:32 +0000 (12 13:38 +0200)
committerAndreas Schneider <asn@samba.org>
Wed, 25 Apr 2012 12:31:10 +0000 (25 14:31 +0200)
tree084fffe314183c2dd1bd3fd975049cbc87fecade
parent705ea5b8c29a7ea9d1e2865abeec3d31d4c18d93
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

Signed-off-by: Andreas Schneider <asn@samba.org>
source3/registry/reg_api.c