From c56ddaf7efdd5744c3f1adb7e40b1db5cbe01523 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 2 Jun 2005 13:21:11 +0000 Subject: r7195: - Fix echo pipe - Don't allocate strings - Give higher preference to the [out] part of variables when they are being used by another [out] variable. Also make sure that [in] variables never use [out] variables (i.e. switch_is() on an [in] variable can no longer use an [out] variable). (This used to be commit 837c83d77a2d1990419c4f3e343616daf8da5799) --- source4/rpc_server/echo/rpc_echo.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4/rpc_server') 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;iin.len;i++) { r->out.data[i] = i; } -- cgit