From b20775fb3b3c86c4aab913e5cbae19cf4e0e71d3 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 7 Nov 2011 08:44:39 +0100 Subject: s3:libsmb: remember the seqnum on all chained requests This is needed in order to verify the incoming signature correctly. metze --- source3/libsmb/async_smb.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c index 8fecd2dd76..801efe4dd9 100644 --- a/source3/libsmb/async_smb.c +++ b/source3/libsmb/async_smb.c @@ -1091,6 +1091,12 @@ NTSTATUS cli_smb_chain_send(struct tevent_req **reqs, int num_reqs) return status; } + for (i=0; i < (num_reqs - 1); i++) { + state = tevent_req_data(reqs[i], struct cli_smb_state); + + state->seqnum = last_state->seqnum; + } + return NT_STATUS_OK; } -- cgit