diff options
Diffstat (limited to 'source4/rpc_server/rpc_echo.c')
-rw-r--r-- | source4/rpc_server/rpc_echo.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/rpc_server/rpc_echo.c b/source4/rpc_server/rpc_echo.c index d003f34ce4..37e7dd5bb8 100644 --- a/source4/rpc_server/rpc_echo.c +++ b/source4/rpc_server/rpc_echo.c @@ -31,6 +31,10 @@ 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; |