summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-04-20 15:19:47 +0200
committerAndreas Schneider <asn@samba.org>2012-04-25 14:31:10 +0200
commit705ea5b8c29a7ea9d1e2865abeec3d31d4c18d93 (patch)
tree329aef907d4dc7ec8313688eecbe237819bfd1a8 /source3
parent04aa303fb11ed7b275a1268f932bb79209f77787 (diff)
downloadsamba-705ea5b8c29a7ea9d1e2865abeec3d31d4c18d93.tar.gz
samba-705ea5b8c29a7ea9d1e2865abeec3d31d4c18d93.tar.bz2
samba-705ea5b8c29a7ea9d1e2865abeec3d31d4c18d93.zip
s3:registry: untangle assignment from check and add a debugmessage in reg_setvalue()
Signed-off-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/registry/reg_api.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/registry/reg_api.c b/source3/registry/reg_api.c
index 712cbda788..fa00de503d 100644
--- a/source3/registry/reg_api.c
+++ b/source3/registry/reg_api.c
@@ -723,7 +723,9 @@ WERROR reg_setvalue(struct registry_key *key, const char *name,
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)) {
+ DEBUG(0, ("reg_setvalue: Error filling value cache: %s\n", win_errstr(err)));
return err;
}