mirror of
https://github.com/samba-team/samba.git
synced 2025-01-24 02:04:21 +03:00
s4:rpc_server/wkssvc: don't reset [out,ref] pointer to 0
r->out.total_entries = 0; should be *r->out.total_entries = 0; Otherwise we fail to marshall the reponse or crash if we run with log level = 10 and trigger the ndr_print functions. All out elements are already setup and initialized by the pidl generated code. metze
This commit is contained in:
parent
21326d48d7
commit
bb1d81bab7
@ -134,14 +134,8 @@ static WERROR dcesrv_wkssvc_NetrWkstaUserSetInfo(struct dcesrv_call_state *dce_c
|
||||
static WERROR dcesrv_wkssvc_NetWkstaTransportEnum(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
|
||||
struct wkssvc_NetWkstaTransportEnum *r)
|
||||
{
|
||||
r->out.total_entries = 0;
|
||||
r->out.resume_handle = NULL;
|
||||
|
||||
switch (r->in.info->level) {
|
||||
case 0:
|
||||
r->out.info = talloc(mem_ctx, struct wkssvc_NetWkstaTransportInfo);
|
||||
W_ERROR_HAVE_NO_MEMORY(r->out.info);
|
||||
r->out.info->level = r->in.info->level;
|
||||
r->out.info->ctr.ctr0 = talloc(mem_ctx, struct wkssvc_NetWkstaTransportCtr0);
|
||||
W_ERROR_HAVE_NO_MEMORY(r->out.info->ctr.ctr0);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user