From 067b341a01319577f59e4c742f7bf11b42381ecc Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 14 Apr 2000 19:02:41 +0000 Subject: Ensure sign&seal work. Data len must have RPC_HEADER_LEN removed, but offset should not (rpc header already consumed). This fix does not affect tng. Jeremy. (This used to be commit 018ec4fdd937994824f53cb956cea1ade9690f97) --- source3/rpc_server/srv_pipe.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c index ebb38154d3..a20b112196 100644 --- a/source3/rpc_server/srv_pipe.c +++ b/source3/rpc_server/srv_pipe.c @@ -969,7 +969,11 @@ BOOL api_pipe_auth_process(pipes_struct *p, prs_struct *rpc_in) BOOLSTR(auth_verify), BOOLSTR(auth_seal), data_len, auth_len)); if (auth_seal) { - char *data = prs_data_p(rpc_in) + RPC_HEADER_LEN + RPC_HDR_REQ_LEN; + /* + * The data in rpc_in doesn't contain the RPC_HEADER as this + * has already been consumed. + */ + char *data = prs_data_p(rpc_in) + RPC_HDR_REQ_LEN; NTLMSSPcalc_p(p, (uchar*)data, data_len); crc32 = crc32_calc_buffer(data, data_len); } -- cgit