summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2021-02-02 15:07:35 +0100
committerJeremy Allison <jra@samba.org>2021-03-16 17:09:32 +0000
commit9614273aa3d0d7c7113d25b2204ebb292405c7a8 (patch)
tree8cfef0c015f6fda8aaea61a6c4b263feffedb298 /source3/rpc_server
parentc8f47dfc03de58525a49824725a3c367d393433b (diff)
downloadsamba-9614273aa3d0d7c7113d25b2204ebb292405c7a8.tar.gz
librpc: Make "dcesrv_context->callbacks" a pointer
This structure just grew from 3 to 6 pointers, avoid making a copy of this. All callers of dcesrv_init_context() have this as a static struct in the C object, so a pointer to that won't change. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/rpc_ncacn_np.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/rpc_ncacn_np.c b/source3/rpc_server/rpc_ncacn_np.c
index 30f2d88d4bf..598efd1f339 100644
--- a/source3/rpc_server/rpc_ncacn_np.c
+++ b/source3/rpc_server/rpc_ncacn_np.c
@@ -488,9 +488,9 @@ static struct tevent_req *rpcint_bh_raw_call_send(TALLOC_CTX *mem_ctx,
if (hs->conn->assoc_group == NULL) {
ZERO_STRUCT(state->call->pkt);
state->call->pkt.u.bind.assoc_group_id = 0;
- status = dce_ctx->callbacks.assoc_group.find(
+ status = dce_ctx->callbacks->assoc_group.find(
state->call,
- dce_ctx->callbacks.assoc_group.private_data);
+ dce_ctx->callbacks->assoc_group.private_data);
if (tevent_req_nterror(req, status)) {
return tevent_req_post(req, ev);
}