s3:registry: use normalize_reg_path() in regdb_get_secdesc()
authorMichael Adam <obnox@samba.org>
Thu, 24 Jun 2010 13:30:31 +0000 (15:30 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 24 Jun 2010 13:36:20 +0000 (15:36 +0200)
instead of normalize_dbkey.

source3/registry/reg_backend_db.c

index 0c906189bc012886fc5912d97e3745446b258203..bfb09f33d5f90bee876135d09f5fa1784a147ccb 100644 (file)
@@ -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) {