summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-12-12 04:18:21 +0000
committerAndrew Tridgell <tridge@samba.org>2003-12-12 04:18:21 +0000
commit869df3adbd02f8a151e54c3216155163979b99fe (patch)
tree2d24454c1e7cf8db87e56e03b1b69217366058c4 /source4/rpc_server
parent16309de71d6c8de96e869aeaab0b879185991d87 (diff)
downloadsamba-869df3adbd02f8a151e54c3216155163979b99fe.tar.gz
samba-869df3adbd02f8a151e54c3216155163979b99fe.tar.bz2
samba-869df3adbd02f8a151e54c3216155163979b99fe.zip
handle the auto-allocation of [ref] output arrays in pidl. This
can simplify rpc servers a lot. (This used to be commit 28fa62d63d020052a0d2f467f3f9cc6344aaf0ce)
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/rpc_echo.c8
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;
}