diff options
author | Volker Lendecke <vl@samba.org> | 2021-02-02 15:07:35 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2021-03-16 17:09:32 +0000 |
commit | 9614273aa3d0d7c7113d25b2204ebb292405c7a8 (patch) | |
tree | 8cfef0c015f6fda8aaea61a6c4b263feffedb298 /source3 | |
parent | c8f47dfc03de58525a49824725a3c367d393433b (diff) | |
download | samba-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')
-rw-r--r-- | source3/rpc_server/rpc_ncacn_np.c | 4 | ||||
-rw-r--r-- | source3/winbindd/winbindd_dual_ndr.c | 2 |
2 files changed, 3 insertions, 3 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); } diff --git a/source3/winbindd/winbindd_dual_ndr.c b/source3/winbindd/winbindd_dual_ndr.c index 39c3a146c03..5f0ec82067c 100644 --- a/source3/winbindd/winbindd_dual_ndr.c +++ b/source3/winbindd/winbindd_dual_ndr.c @@ -524,7 +524,7 @@ enum winbindd_result winbindd_dual_ndrcmd(struct winbindd_domain *domain, ZERO_STRUCT(dcesrv_call->pkt); dcesrv_call->pkt.u.bind.assoc_group_id = 0; - cb = &dcesrv_call->conn->dce_ctx->callbacks; + cb = dcesrv_call->conn->dce_ctx->callbacks; status = cb->assoc_group.find( dcesrv_call, cb->assoc_group.private_data); if (!NT_STATUS_IS_OK(status)) { |