summaryrefslogtreecommitdiff
path: root/source4/rpc_server/echo/rpc_echo.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/rpc_server/echo/rpc_echo.c')
-rw-r--r--source4/rpc_server/echo/rpc_echo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/rpc_server/echo/rpc_echo.c b/source4/rpc_server/echo/rpc_echo.c
index 057d89a866..b67c172579 100644
--- a/source4/rpc_server/echo/rpc_echo.c
+++ b/source4/rpc_server/echo/rpc_echo.c
@@ -56,6 +56,9 @@ static NTSTATUS echo_SinkData(struct dcesrv_call_state *dce_call, TALLOC_CTX *me
static NTSTATUS echo_SourceData(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct echo_SourceData *r)
{
int i;
+
+ r->out.data = talloc_array(mem_ctx, uint8_t, r->in.len);
+
for (i=0;i<r->in.len;i++) {
r->out.data[i] = i;
}