summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-06-24 15:30:31 +0200
committerMichael Adam <obnox@samba.org>2010-06-24 15:36:20 +0200
commit4c948251d97bea9429d3fa24f98814ac57f4d525 (patch)
treea180ab7f7b0dac8b608766b1e541f6904919c376 /source3/registry
parent8ad01613f673a123304da889e6fed4909c619309 (diff)
downloadsamba-4c948251d97bea9429d3fa24f98814ac57f4d525.tar.gz
samba-4c948251d97bea9429d3fa24f98814ac57f4d525.tar.bz2
samba-4c948251d97bea9429d3fa24f98814ac57f4d525.zip
s3:registry: use normalize_reg_path() in regdb_get_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 0c906189bc..bfb09f33d5 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -1740,7 +1740,12 @@ static WERROR regdb_get_secdesc(TALLOC_CTX *mem_ctx, const char *key,
err = WERR_NOMEM;
goto done;
}
- normalize_dbkey(tdbkey);
+
+ tdbkey = normalize_reg_path(tmp_ctx, tdbkey);
+ if (tdbkey == NULL) {
+ err = WERR_NOMEM;
+ goto done;
+ }
data = dbwrap_fetch_bystring(regdb, tmp_ctx, tdbkey);
if (data.dptr == NULL) {