From bfad4421449d7f49287b1ebe81bf572c271f8fca Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 19 Nov 2006 11:11:01 +0000 Subject: 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) --- source3/registry/reg_frontend.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source3/registry') 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; } -- cgit