summaryrefslogtreecommitdiffstats
path: root/source/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-02-05 23:10:31 +0000
committerJelmer Vernooij <jelmer@samba.org>2005-02-05 23:10:31 +0000
commit5446bd96dc447d81af49bc785eaa7589cbd9b74e (patch)
tree69087b82a377446c3f3350a8ce1bcfe095ead541 /source/lib
parent69479ccc09c6eb8915a22dc6b0a13be3eb6a91f1 (diff)
downloadsamba-5446bd96dc447d81af49bc785eaa7589cbd9b74e.tar.gz
samba-5446bd96dc447d81af49bc785eaa7589cbd9b74e.tar.xz
samba-5446bd96dc447d81af49bc785eaa7589cbd9b74e.zip
r5240: Don't return WERR_OK when no values were found (reported by Matt Cobb)
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/registry/common/reg_interface.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/lib/registry/common/reg_interface.c b/source/lib/registry/common/reg_interface.c
index 42bf8f9389a..407d0d33454 100644
--- a/source/lib/registry/common/reg_interface.c
+++ b/source/lib/registry/common/reg_interface.c
@@ -384,10 +384,10 @@ WERROR reg_key_get_value_by_name(TALLOC_CTX *mem_ctx, struct registry_key *key,
}
}
- if(!W_ERROR_IS_OK(error) && !W_ERROR_EQUAL(error, WERR_NO_MORE_ITEMS))
- return error;
-
- return WERR_OK;
+ if (W_ERROR_EQUAL(error, WERR_NO_MORE_ITEMS))
+ return WERR_DEST_NOT_FOUND;
+
+ return error;
}
WERROR reg_key_del(struct registry_key *parent, const char *name)