s3:registry: use normalize_reg_path() in regdb_set_secdesc()
authorMichael Adam <obnox@samba.org>
Thu, 24 Jun 2010 13:31:06 +0000 (15:31 +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 bfb09f33d5f90bee876135d09f5fa1784a147ccb..4e7f8554eacdca56acdd073f576342ade998ffef 100644 (file)
@@ -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 */