s3:registry: let fill_subkey_cache return WERR_BADFILE when the subkey list could...
authorMichael Adam <obnox@samba.org>
Mon, 23 Apr 2012 14:05:33 +0000 (16:05 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 10 May 2012 09:15:44 +0000 (11:15 +0200)
WERR_NO_MORE_ITEMS seems inappropriate.

Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
(cherry picked from commit 4b3dca83bf0da405524a64ca19771fd747ebe267)

source3/registry/reg_api.c

index bfc7aec35d1a6f85d2461a5fc95d12e915c68c32..62cc45fcc6f8abb71abb8c9f1a584342d428c5c9 100644 (file)
@@ -116,7 +116,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;