diff options
author | Michael Adam <obnox@samba.org> | 2010-06-24 15:30:31 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2010-06-24 15:36:20 +0200 |
commit | 4c948251d97bea9429d3fa24f98814ac57f4d525 (patch) | |
tree | a180ab7f7b0dac8b608766b1e541f6904919c376 /source3/registry/reg_backend_db.c | |
parent | 8ad01613f673a123304da889e6fed4909c619309 (diff) | |
download | samba-4c948251d97bea9429d3fa24f98814ac57f4d525.tar.gz samba-4c948251d97bea9429d3fa24f98814ac57f4d525.tar.xz samba-4c948251d97bea9429d3fa24f98814ac57f4d525.zip |
s3:registry: use normalize_reg_path() in regdb_get_secdesc()
instead of normalize_dbkey.
Diffstat (limited to 'source3/registry/reg_backend_db.c')
-rw-r--r-- | source3/registry/reg_backend_db.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index 0c906189bc0..bfb09f33d5f 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) { |