summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2010-07-12 15:09:42 -0400
committerSimo Sorce <idra@samba.org>2010-07-12 15:10:45 -0400
commit1b51ddd37085e6dcc2fbe5056e902270d1efb076 (patch)
tree9d7c9e6e304764a3cbed13cebef0bbb3adc52700
parent77a3858f2f25e84e8e23d82097be710195a250d5 (diff)
downloadsamba-1b51ddd37085e6dcc2fbe5056e902270d1efb076.tar.gz
samba-1b51ddd37085e6dcc2fbe5056e902270d1efb076.tar.bz2
samba-1b51ddd37085e6dcc2fbe5056e902270d1efb076.zip
s3-dcerpc: Fix miscalculation of buffer start address
This was breaking schannel
-rw-r--r--source3/rpc_client/cli_pipe.c4
1 files changed, 3 insertions, 1 deletions
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);