diff options
author | Michael Adam <obnox@samba.org> | 2012-07-03 14:42:46 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-07-05 17:57:16 +0200 |
commit | 5ba91fff9483acf93ed99d16027111df7430f87e (patch) | |
tree | 323a83625e806995588b0ed413925e8363aaf74d /source3 | |
parent | e481afc0fec0a66fba133657de41b370e028f76a (diff) | |
download | samba-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
Diffstat (limited to 'source3')
-rw-r--r-- | source3/registry/reg_api.c | 3 |
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; } |