1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

registry: check for existence of non base key in regdb_store_keys() before proceeding.

Michael
This commit is contained in:
Michael Adam 2008-05-07 14:01:49 +02:00
parent c27d03bba8
commit 52413c94fc

View File

@ -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