summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2010-07-11 12:18:13 -0400
committerGünther Deschner <gd@samba.org>2010-07-13 14:44:11 +0200
commit87605e2030262bc24b59468fe4b5837e8ff584b0 (patch)
treec9e769f6b7afd9d8879bd1588e8501ed4f0cdd8a /source3/rpc_server
parentfe9036cf5bd8aa775a0419be8effae257d6f97f2 (diff)
downloadsamba-87605e2030262bc24b59468fe4b5837e8ff584b0.tar.gz
samba-87605e2030262bc24b59468fe4b5837e8ff584b0.tar.bz2
samba-87605e2030262bc24b59468fe4b5837e8ff584b0.zip
s3-dcerpc: fix dcerpc_push_ncacn_packet, pass arg by address
There is no need to copy the whole structure twice by passing it in by value. Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_pipe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c
index 53ddfcbafd..dbaaea61b9 100644
--- a/source3/rpc_server/srv_pipe.c
+++ b/source3/rpc_server/srv_pipe.c
@@ -870,7 +870,7 @@ static bool setup_bind_nak(pipes_struct *p, struct ncacn_packet *pkt)
DCERPC_PFC_FLAG_LAST,
0,
pkt->call_id,
- u,
+ &u,
&blob);
if (!NT_STATUS_IS_OK(status)) {
prs_mem_free(&p->out_data.frag);
@@ -933,7 +933,7 @@ bool setup_fault_pdu(pipes_struct *p, NTSTATUS fault_status)
DCERPC_PFC_FLAG_DID_NOT_EXECUTE,
0,
p->call_id,
- u,
+ &u,
&blob);
if (!NT_STATUS_IS_OK(status)) {
prs_mem_free(&p->out_data.frag);