diff options
-rw-r--r-- | source3/registry/reg_backend_db.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index 8a35e8c44d..fb071ae273 100644 --- a/source3/registry/reg_backend_db.c +++ b/source3/registry/reg_backend_db.c @@ -911,16 +911,12 @@ static WERROR regdb_get_secdesc(TALLOC_CTX *mem_ctx, const char *key, static WERROR regdb_set_secdesc(const char *key, struct security_descriptor *secdesc) { - prs_struct ps; TALLOC_CTX *mem_ctx = talloc_stackframe(); char *tdbkey; WERROR err = WERR_NOMEM; TDB_DATA tdbdata; int tdb_ret; - - ZERO_STRUCT(ps); - tdbkey = talloc_asprintf(mem_ctx, "%s/%s", REG_SECDESC_PREFIX, key); if (tdbkey == NULL) { goto done; @@ -936,7 +932,6 @@ static WERROR regdb_set_secdesc(const char *key, } else { err = WERR_OK; } - goto done; } @@ -955,7 +950,6 @@ static WERROR regdb_set_secdesc(const char *key, } done: - prs_mem_free(&ps); TALLOC_FREE(mem_ctx); return err; } |