summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-07-03 14:42:46 +0200
committerMichael Adam <obnox@samba.org>2012-07-05 17:57:16 +0200
commit5ba91fff9483acf93ed99d16027111df7430f87e (patch)
tree323a83625e806995588b0ed413925e8363aaf74d
parente481afc0fec0a66fba133657de41b370e028f76a (diff)
downloadsamba-5ba91fff9483acf93ed99d16027111df7430f87e.tar.gz
samba-5ba91fff9483acf93ed99d16027111df7430f87e.tar.bz2
samba-5ba91fff9483acf93ed99d16027111df7430f87e.zip
s3:registry: untangle assignment from check in reg_enumkey()
Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Thu Jul 5 17:57:16 CEST 2012 on sn-devel-104
-rw-r--r--source3/registry/reg_api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/registry/reg_api.c b/source3/registry/reg_api.c
index 56f6137e19..c263174bc2 100644
--- a/source3/registry/reg_api.c
+++ b/source3/registry/reg_api.c
@@ -306,7 +306,8 @@ WERROR reg_enumkey(TALLOC_CTX *mem_ctx, struct registry_key *key,
return WERR_ACCESS_DENIED;
}
- if (!W_ERROR_IS_OK(err = fill_subkey_cache(key))) {
+ err = fill_subkey_cache(key);
+ if (!W_ERROR_IS_OK(err)) {
return err;
}