summaryrefslogtreecommitdiffstats
path: root/source3/registry
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-06-24 15:31:06 +0200
committerMichael Adam <obnox@samba.org>2010-06-24 15:36:20 +0200
commit5cac4e648c635f4f3a46a5878827414a2cb80366 (patch)
treef3d8b7a2e3c12da3d8afca5a3ab2b679f03e1ed5 /source3/registry
parent4c948251d97bea9429d3fa24f98814ac57f4d525 (diff)
downloadsamba-5cac4e648c635f4f3a46a5878827414a2cb80366.tar.gz
samba-5cac4e648c635f4f3a46a5878827414a2cb80366.tar.xz
samba-5cac4e648c635f4f3a46a5878827414a2cb80366.zip
s3:registry: use normalize_reg_path() in regdb_set_secdesc()
instead of normalize_dbkey
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_backend_db.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index bfb09f33d5..4e7f8554ea 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -1784,7 +1784,12 @@ static WERROR regdb_set_secdesc(const char *key,
if (tdbkey == NULL) {
goto done;
}
- normalize_dbkey(tdbkey);
+
+ tdbkey = normalize_reg_path(mem_ctx, tdbkey);
+ if (tdbkey == NULL) {
+ err = WERR_NOMEM;
+ goto done;
+ }
if (secdesc == NULL) {
/* assuming a delete */