From: Stefan Metzmacher Date: Thu, 18 Apr 2024 23:15:52 +0000 (+0200) Subject: s3:rpc_client: pass struct rpc_pipe_client to check_bind_response() X-Git-Tag: tdb-1.4.11~1004 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6548ccb31bfefdfa5d4ddd14ced900c64a68224e;p=thirdparty%2Fsamba.git 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 --- 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;