diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-11-19 10:50:33 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:15:55 -0500 |
commit | cb7f4211b8441642dce9594522dc9588475a7719 (patch) | |
tree | d384f0738dfc3b7b8b766f41f7a16eab8b219ac2 /source/registry | |
parent | 17c7c337f64b082c1bf1045a4093c279deeec958 (diff) | |
download | samba-cb7f4211b8441642dce9594522dc9588475a7719.tar.gz |
r19778: Make regkey_open_internal take a talloc ctx
Diffstat (limited to 'source/registry')
-rw-r--r-- | source/registry/reg_frontend.c | 5 |
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; } |