****************************************************************************/
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;
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;