diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-11-19 11:11:01 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:15:55 -0500 |
commit | bfad4421449d7f49287b1ebe81bf572c271f8fca (patch) | |
tree | 5371fffd1d7201e556f0255412144164bcc25cc1 /source3/rpc_server | |
parent | 76b320c8dfedf9912f0f22a662d765510acb5054 (diff) | |
download | samba-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/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_eventlog_nt.c | 5 | ||||
-rw-r--r-- | source3/rpc_server/srv_winreg_nt.c | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/source3/rpc_server/srv_eventlog_nt.c b/source3/rpc_server/srv_eventlog_nt.c index ba366ed983..ec07981de9 100644 --- a/source3/rpc_server/srv_eventlog_nt.c +++ b/source3/rpc_server/srv_eventlog_nt.c @@ -411,8 +411,9 @@ static BOOL sync_eventlog_params( EVENTLOG_INFO *info ) pstr_sprintf( path, "%s/%s", KEY_EVENTLOG, elogname ); - wresult = regkey_open_internal( - NULL, &keyinfo, path, get_root_nt_token(), REG_KEY_READ ); + wresult = + regkey_open_internal( &keyinfo, path, get_root_nt_token( ), + REG_KEY_READ ); if ( !W_ERROR_IS_OK( wresult ) ) { DEBUG( 4, diff --git a/source3/rpc_server/srv_winreg_nt.c b/source3/rpc_server/srv_winreg_nt.c index ebf825b684..1a130f19b6 100644 --- a/source3/rpc_server/srv_winreg_nt.c +++ b/source3/rpc_server/srv_winreg_nt.c @@ -86,9 +86,7 @@ static WERROR open_registry_key( pipes_struct *p, POLICY_HND *hnd, /* now do the internal open */ - result = regkey_open_internal( NULL, keyinfo, keypath, - p->pipe_user.nt_user_token, - access_desired ); + result = regkey_open_internal( keyinfo, keypath, p->pipe_user.nt_user_token, access_desired ); if ( !W_ERROR_IS_OK(result) ) return result; |