summaryrefslogtreecommitdiff
path: root/librpc/rpc/dcesrv_auth.c
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 /librpc/rpc/dcesrv_auth.c
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 'librpc/rpc/dcesrv_auth.c')
-rw-r--r--librpc/rpc/dcesrv_auth.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/librpc/rpc/dcesrv_auth.c b/librpc/rpc/dcesrv_auth.c
index 1f09bf0d18e..6bbac4e0160 100644
--- a/librpc/rpc/dcesrv_auth.c
+++ b/librpc/rpc/dcesrv_auth.c
@@ -79,7 +79,7 @@ static bool dcesrv_auth_prepare_gensec(struct dcesrv_call_state *call)
{
struct dcesrv_connection *dce_conn = call->conn;
struct dcesrv_auth *auth = call->auth_state;
- struct dcesrv_context_callbacks *cb = &call->conn->dce_ctx->callbacks;
+ struct dcesrv_context_callbacks *cb = call->conn->dce_ctx->callbacks;
NTSTATUS status;
if (auth->auth_started) {
@@ -249,7 +249,7 @@ void dcesrv_default_auth_state_prepare_request(struct dcesrv_call_state *call)
{
struct dcesrv_connection *dce_conn = call->conn;
struct dcesrv_auth *auth = call->auth_state;
- struct dcesrv_context_callbacks *cb = &call->conn->dce_ctx->callbacks;
+ struct dcesrv_context_callbacks *cb = call->conn->dce_ctx->callbacks;
if (auth->auth_audited) {
return;
@@ -287,7 +287,7 @@ bool dcesrv_auth_bind(struct dcesrv_call_state *call)
{
struct ncacn_packet *pkt = &call->pkt;
struct dcesrv_auth *auth = call->auth_state;
- struct dcesrv_context_callbacks *cb = &call->conn->dce_ctx->callbacks;
+ struct dcesrv_context_callbacks *cb = call->conn->dce_ctx->callbacks;
NTSTATUS status;
if (pkt->auth_length == 0) {