diff options
-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 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 */ |