From 6548ccb31bfefdfa5d4ddd14ced900c64a68224e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 19 Apr 2024 01:15:52 +0200 Subject: [PATCH] s3:rpc_client: pass struct rpc_pipe_client to check_bind_response() This prepares adding bind time feature negotiation in the next commits. Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source3/rpc_client/cli_pipe.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index b4289e9d35d..4666bac6e49 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -1656,8 +1656,9 @@ static NTSTATUS rpc_api_pipe_req_recv(struct tevent_req *req, TALLOC_CTX *mem_ct ****************************************************************************/ static bool check_bind_response(const struct dcerpc_bind_ack *r, - const struct ndr_syntax_id *transfer) + struct rpc_pipe_client *cli) { + const struct ndr_syntax_id *transfer = &cli->transfer_syntax; struct dcerpc_ack_ctx ctx; bool equal; @@ -1866,7 +1867,7 @@ static void rpc_pipe_bind_step_one_done(struct tevent_req *subreq) return; } - if (!check_bind_response(&pkt->u.bind_ack, &state->cli->transfer_syntax)) { + if (!check_bind_response(&pkt->u.bind_ack, state->cli)) { DEBUG(2, ("rpc_pipe_bind: check_bind_response failed.\n")); tevent_req_nterror(req, NT_STATUS_BUFFER_TOO_SMALL); return; -- 2.34.1