diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-03-10 14:12:28 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-03-10 17:12:11 +0100 |
commit | bb1d81bab70125d56cfb3e6caff6a01503f33d3d (patch) | |
tree | ce521eacbd0e0246bfbc450a40211478499a7249 | |
parent | 21326d48d7f9dcb93f15124114ade9484c02055d (diff) | |
download | samba-bb1d81bab70125d56cfb3e6caff6a01503f33d3d.tar.gz samba-bb1d81bab70125d56cfb3e6caff6a01503f33d3d.tar.bz2 samba-bb1d81bab70125d56cfb3e6caff6a01503f33d3d.zip |
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
-rw-r--r-- | source4/rpc_server/wkssvc/dcesrv_wkssvc.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/source4/rpc_server/wkssvc/dcesrv_wkssvc.c b/source4/rpc_server/wkssvc/dcesrv_wkssvc.c index 4358eb1732..0be956db9d 100644 --- a/source4/rpc_server/wkssvc/dcesrv_wkssvc.c +++ b/source4/rpc_server/wkssvc/dcesrv_wkssvc.c @@ -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); |