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

s3:registry: don't skip base keys from existence check in regdb_delete_subkey()

Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
This commit is contained in:
Michael Adam 2011-07-01 13:57:19 +02:00
parent a60c94d559
commit 6b99aa496f

View File

@ -1213,7 +1213,7 @@ static WERROR regdb_delete_subkey(const char *key, const char *subkey)
struct regdb_delete_subkey_context delete_ctx;
TALLOC_CTX *mem_ctx = talloc_stackframe();
if (!regdb_key_is_base_key(key) && !regdb_key_exists(regdb, key)) {
if (!regdb_key_exists(regdb, key)) {
werr = WERR_NOT_FOUND;
goto done;
}