1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

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 <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Stefan Metzmacher 2024-04-19 01:15:52 +02:00
parent 0cc0970d35
commit 6548ccb31b

View File

@ -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;