diff options
Diffstat (limited to 'source4/rpc_server/rpc_echo.c')
-rw-r--r-- | source4/rpc_server/rpc_echo.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/source4/rpc_server/rpc_echo.c b/source4/rpc_server/rpc_echo.c index 37b72f764b..d003f34ce4 100644 --- a/source4/rpc_server/rpc_echo.c +++ b/source4/rpc_server/rpc_echo.c @@ -31,10 +31,6 @@ static NTSTATUS echo_AddOne(struct dcesrv_state *dce, TALLOC_CTX *mem_ctx, struc static NTSTATUS echo_EchoData(struct dcesrv_state *dce, TALLOC_CTX *mem_ctx, struct echo_EchoData *r) { - r->out.out_data = talloc(mem_ctx, r->in.len); - if (!r->out.out_data) { - return NT_STATUS_NO_MEMORY; - } memcpy(r->out.out_data, r->in.in_data, r->in.len); return NT_STATUS_OK; @@ -48,10 +44,6 @@ static NTSTATUS echo_SinkData(struct dcesrv_state *dce, TALLOC_CTX *mem_ctx, str static NTSTATUS echo_SourceData(struct dcesrv_state *dce, TALLOC_CTX *mem_ctx, struct echo_SourceData *r) { int i; - r->out.data = talloc(mem_ctx, r->in.len); - if (!r->out.data) { - return NT_STATUS_NO_MEMORY; - } for (i=0;i<r->in.len;i++) { r->out.data[i] = i; } |