summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-22 19:18:56 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-22 22:31:00 +0100
commit43170dafbcbe7464bce9b4c6d76532d7d0bf5b9a (patch)
treec10af94c0148af2ad934d1804c7a2beb406cc641 /source4/rpc_server
parent64f51380aad484d020093c926512ec79a35bcb93 (diff)
downloadsamba-43170dafbcbe7464bce9b4c6d76532d7d0bf5b9a.tar.gz
samba-43170dafbcbe7464bce9b4c6d76532d7d0bf5b9a.tar.bz2
samba-43170dafbcbe7464bce9b4c6d76532d7d0bf5b9a.zip
s4:registry - adaptions for "add memory contexts for delete value/key functions"
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/winreg/rpc_winreg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/rpc_server/winreg/rpc_winreg.c b/source4/rpc_server/winreg/rpc_winreg.c
index 506c72df44..955fbc230e 100644
--- a/source4/rpc_server/winreg/rpc_winreg.c
+++ b/source4/rpc_server/winreg/rpc_winreg.c
@@ -189,7 +189,7 @@ static WERROR dcesrv_winreg_DeleteKey(struct dcesrv_call_state *dce_call,
{
case SECURITY_SYSTEM:
case SECURITY_ADMINISTRATOR:
- result = reg_key_del(key, r->in.key.name);
+ result = reg_key_del(mem_ctx, key, r->in.key.name);
talloc_unlink(dce_call->context, h);
return result;
@@ -216,7 +216,7 @@ static WERROR dcesrv_winreg_DeleteValue(struct dcesrv_call_state *dce_call,
{
case SECURITY_SYSTEM:
case SECURITY_ADMINISTRATOR:
- return reg_del_value(key, r->in.value.name);
+ return reg_del_value(mem_ctx, key, r->in.value.name);
default:
return WERR_ACCESS_DENIED;
}