mirror of
https://github.com/samba-team/samba.git
synced 2025-12-16 00:23:52 +03:00
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 commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user