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 9468c40cf7..50fc20ea82 100644 --- a/source3/registry/reg_backend_db.c +++ b/source3/registry/reg_backend_db.c @@ -583,6 +583,10 @@ bool regdb_store_keys(const char *key, REGSUBKEY_CTR *ctr) TALLOC_CTX *ctx = talloc_stackframe(); NTSTATUS status; + if (!regdb_key_is_base_key(key) && !regdb_key_exists(key)) { + goto fail; + } + /* * fetch a list of the old subkeys so we can determine if anything has * changed |