diff options
Diffstat (limited to 'source4/rpc_server/winreg')
-rw-r--r-- | source4/rpc_server/winreg/rpc_winreg.c | 4 |
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 c50512d48e..c1d6d6ad69 100644 --- a/source4/rpc_server/winreg/rpc_winreg.c +++ b/source4/rpc_server/winreg/rpc_winreg.c @@ -33,14 +33,14 @@ struct _privatedata { static void winreg_unbind(struct dcesrv_connection *dc, const struct dcesrv_interface *di) { struct _privatedata *data = dc->private; - reg_free(data->registry); + if (data) reg_free(data->registry); } static NTSTATUS winreg_bind(struct dcesrv_call_state *dc, const struct dcesrv_interface *di) { struct _privatedata *data; data = talloc(dc->mem_ctx, sizeof(struct _privatedata)); - data->registry = reg_open("nt4", "/home/aurelia/jelmer/NTUSER.DAT", False); + data->registry = reg_open(lp_parm_string(-1,"winreg","subsystem"),lp_parm_string(-1,"winreg", "file"), False); if(!data->registry) return NT_STATUS_UNSUCCESSFUL; dc->conn->private = data; return NT_STATUS_OK; |