summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-11-19 10:50:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:55 -0500
commite82cd437cc3c93e25f56d3326d6ba527a33ebfbf (patch)
treeaff6b968a38ccb4ef86c22a1676659bcf08d0f6b /source3/registry
parentcbc03ec6df1865fa980d1bc64769f8920cbd1d82 (diff)
downloadsamba-e82cd437cc3c93e25f56d3326d6ba527a33ebfbf.tar.gz
samba-e82cd437cc3c93e25f56d3326d6ba527a33ebfbf.tar.bz2
samba-e82cd437cc3c93e25f56d3326d6ba527a33ebfbf.zip
r19778: Make regkey_open_internal take a talloc ctx
(This used to be commit cb7f4211b8441642dce9594522dc9588475a7719)
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_frontend.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/registry/reg_frontend.c b/source3/registry/reg_frontend.c
index d5a9d45e8c..14531b52f7 100644
--- a/source3/registry/reg_frontend.c
+++ b/source3/registry/reg_frontend.c
@@ -345,7 +345,8 @@ BOOL regkey_access_check( REGISTRY_KEY *key, uint32 requested, uint32 *granted,
/***********************************************************************
***********************************************************************/
-WERROR regkey_open_internal( REGISTRY_KEY **regkey, const char *path,
+WERROR regkey_open_internal( TALLOC_CTX *mem_ctx,
+ REGISTRY_KEY **regkey, const char *path,
NT_USER_TOKEN *token, uint32 access_desired )
{
WERROR result = WERR_OK;
@@ -358,7 +359,7 @@ WERROR regkey_open_internal( REGISTRY_KEY **regkey, const char *path,
DEBUG(7,("regkey_open_internal: name = [%s]\n", path));
- if ( !(*regkey = TALLOC_ZERO_P(NULL, REGISTRY_KEY)) ) {
+ if ( !(*regkey = TALLOC_ZERO_P(mem_ctx, REGISTRY_KEY)) ) {
regdb_close();
return WERR_NOMEM;
}