diff options
-rw-r--r-- | source3/registry/reg_backend_db.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index c0ee8017c1..8de10a0b1f 100644 --- a/source3/registry/reg_backend_db.c +++ b/source3/registry/reg_backend_db.c @@ -671,6 +671,8 @@ bool regdb_store_keys(const char *key, REGSUBKEY_CTR *ctr) continue; } + /* (a) Delete the value list for this key */ + path = talloc_asprintf(ctx, "%s/%s/%s", REG_VALUE_PREFIX, key, @@ -686,6 +688,8 @@ bool regdb_store_keys(const char *key, REGSUBKEY_CTR *ctr) dbwrap_delete_bystring(regdb, path); TALLOC_FREE(path); + /* (c) Delete the list of subkeys of this key */ + path = talloc_asprintf(ctx, "%s/%s", key, oldkeyname); if (!path) { goto cancel; |