From 1b51ddd37085e6dcc2fbe5056e902270d1efb076 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 12 Jul 2010 15:09:42 -0400 Subject: s3-dcerpc: Fix miscalculation of buffer start address This was breaking schannel --- source3/rpc_client/cli_pipe.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/rpc_client/cli_pipe.c') diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index b9b04b6fe0..aea6b36e4a 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -1004,7 +1004,9 @@ static NTSTATUS cli_pipe_verify_schannel(struct rpc_pipe_client *cli, return NT_STATUS_BUFFER_TOO_SMALL; } - blob = data_blob_const(prs_data_p(current_pdu) + prs_offset(current_pdu), auth_len); + blob = data_blob_const(prs_data_p(current_pdu) + + prs_offset(current_pdu) + + RPC_HDR_AUTH_LEN, auth_len); if (DEBUGLEVEL >= 10) { dump_NL_AUTH_SIGNATURE(talloc_tos(), &blob); -- cgit