summaryrefslogtreecommitdiff
path: root/source/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
commitcb7f4211b8441642dce9594522dc9588475a7719 (patch)
treed384f0738dfc3b7b8b766f41f7a16eab8b219ac2 /source/registry
parent17c7c337f64b082c1bf1045a4093c279deeec958 (diff)
downloadsamba-cb7f4211b8441642dce9594522dc9588475a7719.tar.gz
r19778: Make regkey_open_internal take a talloc ctx
Diffstat (limited to 'source/registry')
-rw-r--r--source/registry/reg_frontend.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/registry/reg_frontend.c b/source/registry/reg_frontend.c
index d5a9d45e8c4..14531b52f72 100644
--- a/source/registry/reg_frontend.c
+++ b/source/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;
}