summaryrefslogtreecommitdiff
path: root/source4/rpc_server/winreg
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-08-18 11:16:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:33:32 -0500
commit71f34f401e2864a7ee37e9d664eaa398aa1081f4 (patch)
tree725e9da1ebcea410c3f77203853f1cbac8772999 /source4/rpc_server/winreg
parent6195932b4241d94453438a857179debc08495ece (diff)
downloadsamba-71f34f401e2864a7ee37e9d664eaa398aa1081f4.tar.gz
samba-71f34f401e2864a7ee37e9d664eaa398aa1081f4.tar.bz2
samba-71f34f401e2864a7ee37e9d664eaa398aa1081f4.zip
r9388: we should fault bad handles given to winreg_GetVersion()
(This used to be commit 00e55be9efc6050e3bda13603270b028dbc19c3f)
Diffstat (limited to 'source4/rpc_server/winreg')
-rw-r--r--source4/rpc_server/winreg/rpc_winreg.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/rpc_server/winreg/rpc_winreg.c b/source4/rpc_server/winreg/rpc_winreg.c
index 400041451f..f1dced3817 100644
--- a/source4/rpc_server/winreg/rpc_winreg.c
+++ b/source4/rpc_server/winreg/rpc_winreg.c
@@ -495,8 +495,12 @@ static WERROR winreg_AbortSystemShutdown(struct dcesrv_call_state *dce_call, TAL
winreg_GetVersion
*/
static WERROR winreg_GetVersion(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
- struct winreg_GetVersion *r)
+ struct winreg_GetVersion *r)
{
+ struct dcesrv_handle *h;
+
+ DCESRV_PULL_HANDLE_FAULT(h, r->in.handle, HTYPE_REGKEY);
+
r->out.version = 5;
return WERR_OK;
}