summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-11-19 11:11:01 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:55 -0500
commitbfad4421449d7f49287b1ebe81bf572c271f8fca (patch)
tree5371fffd1d7201e556f0255412144164bcc25cc1 /source3/registry
parent76b320c8dfedf9912f0f22a662d765510acb5054 (diff)
downloadsamba-bfad4421449d7f49287b1ebe81bf572c271f8fca.tar.gz
samba-bfad4421449d7f49287b1ebe81bf572c271f8fca.tar.bz2
samba-bfad4421449d7f49287b1ebe81bf572c271f8fca.zip
r19780: Ok, regkey_open_internal needs a regkey_close_internal. Giving a talloc ctx is
misleading here. This needs fixing properly :-) Volker (This used to be commit f808182346aa16bb2f3a9383e28d318099a5e14e)
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_frontend.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/registry/reg_frontend.c b/source3/registry/reg_frontend.c
index d79e75b995..ed49cc998c 100644
--- a/source3/registry/reg_frontend.c
+++ b/source3/registry/reg_frontend.c
@@ -345,8 +345,7 @@ BOOL regkey_access_check( REGISTRY_KEY *key, uint32 requested, uint32 *granted,
/***********************************************************************
***********************************************************************/
-WERROR regkey_open_internal( TALLOC_CTX *mem_ctx,
- REGISTRY_KEY **regkey, const char *path,
+WERROR regkey_open_internal( REGISTRY_KEY **regkey, const char *path,
NT_USER_TOKEN *token, uint32 access_desired )
{
WERROR result = WERR_OK;
@@ -359,7 +358,7 @@ WERROR regkey_open_internal( TALLOC_CTX *mem_ctx,
DEBUG(7,("regkey_open_internal: name = [%s]\n", path));
- if ( !(*regkey = TALLOC_ZERO_P(mem_ctx, REGISTRY_KEY)) ) {
+ if ( !(*regkey = TALLOC_ZERO_P(NULL, REGISTRY_KEY)) ) {
regdb_close();
return WERR_NOMEM;
}