summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-07-01 15:18:12 +0200
committerMichael Adam <obnox@samba.org>2011-07-04 20:02:08 +0200
commit394ca1446e712c9cb3649c8a2c4fd2ebe638d8cd (patch)
treecbf42cb6bf984c8f1c04ca90850a87798af9b66a /source3/registry
parenteb797bd2060732bca06cda3dfd5eabec5e7c8ab0 (diff)
downloadsamba-394ca1446e712c9cb3649c8a2c4fd2ebe638d8cd.tar.gz
samba-394ca1446e712c9cb3649c8a2c4fd2ebe638d8cd.tar.bz2
samba-394ca1446e712c9cb3649c8a2c4fd2ebe638d8cd.zip
s3:registry: remove redundant write of zero-lentgh subkey list record
In this case, the zero-lenght list has already been written in step #2. Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_backend_db.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index c25fcdb092..9d33f2cf9d 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -954,20 +954,6 @@ static NTSTATUS regdb_store_keys_action(struct db_context *db,
num_subkeys = regsubkey_ctr_numkeys(store_ctx->ctr);
- if (num_subkeys == 0) {
- werr = regsubkey_ctr_init(mem_ctx, &subkeys);
- W_ERROR_NOT_OK_GOTO_DONE(werr);
-
- werr = regdb_store_keys_internal2(db, store_ctx->key, subkeys);
- if (!W_ERROR_IS_OK(werr)) {
- DEBUG(0,("regdb_store_keys: Failed to store "
- "new record for key [%s]: %s\n",
- store_ctx->key, win_errstr(werr)));
- goto done;
- }
- TALLOC_FREE(subkeys);
- }
-
for (i=0; i<num_subkeys; i++) {
path = talloc_asprintf(mem_ctx, "%s\\%s", store_ctx->key,
regsubkey_ctr_specific_key(store_ctx->ctr, i));