summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-04-23 16:05:33 +0200
committerAndreas Schneider <asn@samba.org>2012-04-25 14:31:12 +0200
commitbe2cb08e405036532c97e3f7dc50607582c0daeb (patch)
treeccd94939d8aebe3fd4c01f9bc528cbb586a780b2 /source3
parent1703e6fe096ea9e3e14c189522150321fee1a4c5 (diff)
downloadsamba-be2cb08e405036532c97e3f7dc50607582c0daeb.tar.gz
samba-be2cb08e405036532c97e3f7dc50607582c0daeb.tar.bz2
samba-be2cb08e405036532c97e3f7dc50607582c0daeb.zip
s3:registry: let fill_subkey_cache return WERR_BADFILE when the subkey list could not be loaded
WERR_NO_MORE_ITEMS seems inappropriate. Pair-Programmed-With: Gregor Beck <gbeck@sernet.de> Signed-off-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/registry/reg_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/registry/reg_api.c b/source3/registry/reg_api.c
index ba5fb313c5..f5fea0741b 100644
--- a/source3/registry/reg_api.c
+++ b/source3/registry/reg_api.c
@@ -117,7 +117,7 @@ static WERROR fill_subkey_cache(struct registry_key *key)
if (fetch_reg_keys(key->key, key->subkeys) == -1) {
TALLOC_FREE(key->subkeys);
- return WERR_NO_MORE_ITEMS;
+ return WERR_BADFILE;
}
return WERR_OK;