summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-03-27 10:05:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:54 -0500
commit3f370211a57676707e0869593ff3272b95830ee7 (patch)
treedf6aed024e26c55b5c0feaea5bcac367a4070014 /source3/registry
parent8960af95585cca9312e6df2f9214fcad8cff73c7 (diff)
downloadsamba-3f370211a57676707e0869593ff3272b95830ee7.tar.gz
samba-3f370211a57676707e0869593ff3272b95830ee7.tar.bz2
samba-3f370211a57676707e0869593ff3272b95830ee7.zip
r21977: little cosmetic change to remove a local var that's not really needed
metze (This used to be commit 71c3880e8924c57dcd60573d628b8eb29cee6055)
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_db.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/registry/reg_db.c b/source3/registry/reg_db.c
index 57a8e6ce0d..6eedccfea5 100644
--- a/source3/registry/reg_db.c
+++ b/source3/registry/reg_db.c
@@ -743,7 +743,6 @@ static WERROR regdb_set_secdesc(const char *key,
TALLOC_CTX *mem_ctx;
char *tdbkey;
WERROR err = WERR_NOMEM;
- uint8 *data;
TDB_DATA tdbdata;
if (!(mem_ctx = talloc_init("regdb_set_secdesc"))) {
@@ -758,14 +757,13 @@ static WERROR regdb_set_secdesc(const char *key,
}
normalize_dbkey(tdbkey);
- err = ntstatus_to_werror(marshall_sec_desc(mem_ctx, secdesc, &data,
+ err = ntstatus_to_werror(marshall_sec_desc(mem_ctx, secdesc,
+ (uint8 **)&tdbdata.dptr,
&tdbdata.dsize));
if (!W_ERROR_IS_OK(err)) {
goto done;
}
- tdbdata.dptr = (char *)data;
-
if (tdb_trans_store_bystring(tdb_reg, tdbkey, tdbdata, 0) == -1) {
err = ntstatus_to_werror(map_nt_error_from_unix(errno));
goto done;