diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-03-10 14:08:34 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-03-10 17:12:10 +0100 |
commit | 00ce349ad1be0b223a6c455667e894aac7869aba (patch) | |
tree | 6df891c6ad0b18b113f670b15e9c9335d4d76344 /source4/rpc_server | |
parent | 11a402afa88a5f74d060fccb47cca604dff9d925 (diff) | |
download | samba-00ce349ad1be0b223a6c455667e894aac7869aba.tar.gz samba-00ce349ad1be0b223a6c455667e894aac7869aba.tar.bz2 samba-00ce349ad1be0b223a6c455667e894aac7869aba.zip |
s4:rpc_server/wkssvc: avoid ZERO_STRUCT(r->out) and use already allocated [out,ref] memory
metze
Diffstat (limited to 'source4/rpc_server')
-rw-r--r-- | source4/rpc_server/wkssvc/dcesrv_wkssvc.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source4/rpc_server/wkssvc/dcesrv_wkssvc.c b/source4/rpc_server/wkssvc/dcesrv_wkssvc.c index e23485aea9..0122a3e71b 100644 --- a/source4/rpc_server/wkssvc/dcesrv_wkssvc.c +++ b/source4/rpc_server/wkssvc/dcesrv_wkssvc.c @@ -34,10 +34,6 @@ static WERROR dcesrv_wkssvc_NetWkstaGetInfo(struct dcesrv_call_state *dce_call, struct dcesrv_context *dce_ctx = dce_call->conn->dce_ctx; struct dcerpc_server_info *server_info = lp_dcerpc_server_info(mem_ctx, dce_ctx->lp_ctx); - ZERO_STRUCT(r->out); - r->out.info = talloc_zero(mem_ctx, union wkssvc_NetWkstaInfo); - W_ERROR_HAVE_NO_MEMORY(r->out.info); - /* NOTE: win2k3 ignores r->in.server_name completly so we do --metze */ switch(r->in.level) { |