From 2bbdb2cd34233b0836f1aa7365e02c85494af4fa Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sun, 21 Mar 2010 15:12:37 +0100 Subject: s4:WINREG RPC server - don't check for the "name" size in "EnumValue" This isn't needed at all since: 1.) a new name object is created and sent back to the client 2.) the "size" seems to be the size of the "name" pointer. On my test with the "regedt32" program this has always been "4". --- source4/rpc_server/winreg/rpc_winreg.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/source4/rpc_server/winreg/rpc_winreg.c b/source4/rpc_server/winreg/rpc_winreg.c index 5bfc655277..506c72df44 100644 --- a/source4/rpc_server/winreg/rpc_winreg.c +++ b/source4/rpc_server/winreg/rpc_winreg.c @@ -300,11 +300,6 @@ static WERROR dcesrv_winreg_EnumValue(struct dcesrv_call_state *dce_call, data.length = *r->in.length; } - /* check if there is enough room for the name */ - if (r->in.name->size < 2*strlen_m_term(data_name)) { - return WERR_MORE_DATA; - } - /* "data_name" is NULL when we query the default attribute */ if (data_name != NULL) { r->out.name->name = data_name; -- cgit