summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-04-14 19:02:41 +0000
committerJeremy Allison <jra@samba.org>2000-04-14 19:02:41 +0000
commit067b341a01319577f59e4c742f7bf11b42381ecc (patch)
tree3da74cac928fbd8a171335c56a682fc2a5a5abc7
parente52431f70a92f44ca12f3b6e1dafe3b7d67914da (diff)
downloadsamba-067b341a01319577f59e4c742f7bf11b42381ecc.tar.gz
samba-067b341a01319577f59e4c742f7bf11b42381ecc.tar.bz2
samba-067b341a01319577f59e4c742f7bf11b42381ecc.zip
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)
-rw-r--r--source3/rpc_server/srv_pipe.c6
1 files changed, 5 insertions, 1 deletions
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);
}