diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-06-02 13:21:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:17:25 -0500 |
commit | c56ddaf7efdd5744c3f1adb7e40b1db5cbe01523 (patch) | |
tree | 6c707436e36bc62be2a52a1aebc513766fbfd9dc /source4/rpc_server | |
parent | 180b269ac6fdf89cb4953089cf0f5f1e84f76166 (diff) | |
download | samba-c56ddaf7efdd5744c3f1adb7e40b1db5cbe01523.tar.gz samba-c56ddaf7efdd5744c3f1adb7e40b1db5cbe01523.tar.bz2 samba-c56ddaf7efdd5744c3f1adb7e40b1db5cbe01523.zip |
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)
Diffstat (limited to 'source4/rpc_server')
-rw-r--r-- | source4/rpc_server/echo/rpc_echo.c | 3 |
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; } |