mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
registry: honour the WERROR that regsubkey_ctr_addkey gives in regdb_fetch_keys.
Michael
(This used to be commit 7dd7471da7
)
This commit is contained in:
parent
e5d83f07cd
commit
86d189dad1
@ -720,6 +720,7 @@ fail:
|
||||
|
||||
int regdb_fetch_keys(const char *key, REGSUBKEY_CTR *ctr)
|
||||
{
|
||||
WERROR werr;
|
||||
char *path = NULL;
|
||||
uint32 num_items;
|
||||
uint8 *buf;
|
||||
@ -764,7 +765,12 @@ int regdb_fetch_keys(const char *key, REGSUBKEY_CTR *ctr)
|
||||
|
||||
for (i=0; i<num_items; i++) {
|
||||
len += tdb_unpack(buf+len, buflen-len, "f", subkeyname);
|
||||
regsubkey_ctr_addkey(ctr, subkeyname);
|
||||
werr = regsubkey_ctr_addkey(ctr, subkeyname);
|
||||
if (!W_ERROR_IS_OK(werr)) {
|
||||
DEBUG(5, ("regdb_fetch_keys: regsubkey_ctr_addkey "
|
||||
"failed: %s\n", dos_errstr(werr)));
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
|
||||
DEBUG(11,("regdb_fetch_keys: Exit [%d] items\n", num_items));
|
||||
|
Loading…
Reference in New Issue
Block a user