summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-04-23 15:30:38 +0200
committerAndreas Schneider <asn@samba.org>2012-04-25 14:31:12 +0200
commit323ec9f9b46edb5792bd0695955184e4111e9a34 (patch)
treeb68fe9544eec0ea1ec2a45fa38b6aad3f6b7d78b
parent640cecab195e378da6d661d860477ffe531b76cd (diff)
downloadsamba-323ec9f9b46edb5792bd0695955184e4111e9a34.tar.gz
samba-323ec9f9b46edb5792bd0695955184e4111e9a34.tar.bz2
samba-323ec9f9b46edb5792bd0695955184e4111e9a34.zip
s3:registry untangle an assignment from the check in regkey_open_onelevel()
Signed-off-by: Andreas Schneider <asn@samba.org>
-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 0be1231b80..ff70016ae2 100644
--- a/source3/registry/reg_api.c
+++ b/source3/registry/reg_api.c
@@ -196,7 +196,8 @@ static WERROR regkey_open_onelevel(TALLOC_CTX *mem_ctx,
/* Look up the table of registry I/O operations */
- if ( !(key->ops = reghook_cache_find( key->name )) ) {
+ key->ops = reghook_cache_find( key->name );
+ if (key->ops == NULL) {
DEBUG(0,("reg_open_onelevel: Failed to assign "
"registry_ops to [%s]\n", key->name ));
result = WERR_BADFILE;