summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-03-13 15:18:08 +0100
committerStefan Metzmacher <metze@samba.org>2012-03-15 07:35:28 +0100
commitbb75905b6a6ef48a45039826a7efa0d90e4edbc8 (patch)
treed00a7a2edd1d6c0f3af02aed5eb05298b79891a7 /source4/librpc
parentcd1d5a29d4cf810acbdc79f8824c85e608eae129 (diff)
downloadsamba-bb75905b6a6ef48a45039826a7efa0d90e4edbc8.tar.gz
samba-bb75905b6a6ef48a45039826a7efa0d90e4edbc8.tar.bz2
samba-bb75905b6a6ef48a45039826a7efa0d90e4edbc8.zip
s4:librpc/rpc: pass a mem_ctx to dcerpc_request_send()
metze
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/rpc/dcerpc.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c
index d76b9709e4..5bcc5f5a07 100644
--- a/source4/librpc/rpc/dcerpc.c
+++ b/source4/librpc/rpc/dcerpc.c
@@ -83,7 +83,8 @@ _PUBLIC_ NTSTATUS dcerpc_init(void)
static void dcerpc_connection_dead(struct dcecli_connection *conn, NTSTATUS status);
static void dcerpc_schedule_io_trigger(struct dcecli_connection *c);
-static struct rpc_request *dcerpc_request_send(struct dcerpc_pipe *p,
+static struct rpc_request *dcerpc_request_send(TALLOC_CTX *mem_ctx,
+ struct dcerpc_pipe *p,
const struct GUID *object,
uint16_t opnum,
DATA_BLOB *stub_data);
@@ -240,7 +241,8 @@ static struct tevent_req *dcerpc_bh_raw_call_send(TALLOC_CTX *mem_ctx,
return tevent_req_post(req, ev);
}
- subreq = dcerpc_request_send(hs->p,
+ subreq = dcerpc_request_send(state,
+ hs->p,
object,
opnum,
&state->in_data);
@@ -1462,7 +1464,8 @@ req_done:
/*
perform the send side of a async dcerpc request
*/
-static struct rpc_request *dcerpc_request_send(struct dcerpc_pipe *p,
+static struct rpc_request *dcerpc_request_send(TALLOC_CTX *mem_ctx,
+ struct dcerpc_pipe *p,
const struct GUID *object,
uint16_t opnum,
DATA_BLOB *stub_data)
@@ -1471,7 +1474,7 @@ static struct rpc_request *dcerpc_request_send(struct dcerpc_pipe *p,
p->conn->transport.recv_data = dcerpc_recv_data;
- req = talloc(p, struct rpc_request);
+ req = talloc(mem_ctx, struct rpc_request);
if (req == NULL) {
return NULL;
}