summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-07-03 14:42:12 +0200
committerMichael Adam <obnox@samba.org>2012-07-05 16:07:40 +0200
commite481afc0fec0a66fba133657de41b370e028f76a (patch)
treefeb61205c7c12ff4259f2c301c1fbffa983113fe
parentbb4995b0d1934f0a084714c8369e9fef46090df1 (diff)
downloadsamba-e481afc0fec0a66fba133657de41b370e028f76a.tar.gz
samba-e481afc0fec0a66fba133657de41b370e028f76a.tar.bz2
samba-e481afc0fec0a66fba133657de41b370e028f76a.zip
s3:registry: untangle assignment from check in reg_enumvalue()
-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 b962920bcf..56f6137e19 100644
--- a/source3/registry/reg_api.c
+++ b/source3/registry/reg_api.c
@@ -338,7 +338,8 @@ WERROR reg_enumvalue(TALLOC_CTX *mem_ctx, struct registry_key *key,
return WERR_ACCESS_DENIED;
}
- if (!(W_ERROR_IS_OK(err = fill_value_cache(key)))) {
+ err = fill_value_cache(key);
+ if (!(W_ERROR_IS_OK(err))) {
return err;
}