diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-08-18 11:16:32 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:33:32 -0500 |
commit | 71f34f401e2864a7ee37e9d664eaa398aa1081f4 (patch) | |
tree | 725e9da1ebcea410c3f77203853f1cbac8772999 | |
parent | 6195932b4241d94453438a857179debc08495ece (diff) | |
download | samba-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)
-rw-r--r-- | source4/rpc_server/winreg/rpc_winreg.c | 6 |
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; } |